Skip to content

Instantly share code, notes, and snippets.

@dawehner
Created June 16, 2017 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dawehner/ed59f5558190c08b50cac24342349643 to your computer and use it in GitHub Desktop.
Save dawehner/ed59f5558190c08b50cac24342349643 to your computer and use it in GitHub Desktop.
http://localhost:8888/api/recipes/893fb726-5eeb-4cce-8d03-554c835285a5?include=field_image,field_image.field_image,field_image.field_image.file--file,tags,field_image.owner,field_image.field_image.owner&fields[image]=image&fields[file--file]=url,uuid&fields[recipes]=title,difficulty,ingredients,totalTime,preparationTime,instructions,image,tags,&fields[tags]=tid,name
{
"data": {
"type": "recipes",
"id": "893fb726-5eeb-4cce-8d03-554c835285a5",
"attributes": {
"title": "Delicious and Nutritious Mermaid Smoothie",
"difficulty": "easy",
"ingredients": [
"1 dragon fruit",
"\u00bd of a mango",
"1 small banana or \u00bd of a large one",
"1 Tbsp. coconut oil",
"1 Tbsp. maple syrup",
"1 cup coconut milk beverage or non-dairy beverage of your choice (plus more if smoothie is too thick)",
"Optional: garnish with a teaspoon of detoxing spirulina for added health benefits and a deep blue-green pop of color."
],
"preparationTime": 10,
"instructions": "We eat (and drink!) with our eyes, so it\u2019s no wonder a hot pink smoothie adorned with a \u201cmermaid\u201d garnish would appeal to my 6-year-old daughter. This delicious and nutritious smoothie is the creation of Jessica Rosen, a certified holistic health coach and co-founder of Raw Generation. Thanks to the dragon fruit (a brightly colored fruit from Asia), mango and banana, it\u2019s packed with antioxidants that help boost the immune system and beautify the skin. The coconut oil that is also added helps to improve energy, cognitive function, plus a bevy of other nutritional benefits, while the maple syrup offers a bit of extra sweetness and a healthy dose of essential minerals.It\u2019s magical to your eyes and your body! What mom would say no to that?Tip: Look for dragon fruit in Asian markets. Select as you would an avocado - if it gives slightly when pressed then it\u2019s ripe, too soft and it will be overly ripe (allow hard ones to ripen for a few days at room temperature).\nPrepare the dragon fruit:\nCut the dragon fruit in half from top (green stem) to bottom. Cut a sliver of the fruit off of one half to use as your mermaid garnish (note: the skin is inedible and should be used as a garnish only). Scoop out the flesh with a spoon and add it to a blender.\nAdd the remaining ingredients to the blender and blend until smooth. Pour into a tall glass and garnish the rim with the dragon fruit \u201cmermaid.\u201d For a ombr\u00e9 effect, add a bit of green algae, such as spirlina, along with a teaspoon of water to the bottom of the glass. Stir, then slowly pour in the smoothie.",
"totalTime": 10
},
"relationships": {
"image": {
"data": {
"type": "images",
"id": "9f206940-1cf8-42c9-9fc9-3127b5c307a8"
},
"links": {
"self": "http:\/\/localhost:8888\/api\/recipes\/893fb726-5eeb-4cce-8d03-554c835285a5\/relationships\/image",
"related": "http:\/\/localhost:8888\/api\/recipes\/893fb726-5eeb-4cce-8d03-554c835285a5\/image"
}
},
"tags": {
"data": [
{
"type": "tags",
"id": "5724bff1-b68c-43a0-ba5f-4f83fc6f1a9f"
},
{
"type": "tags",
"id": "7832b43b-a48c-4532-a37b-cec36cd3f69b"
}
],
"links": {
"self": "http:\/\/localhost:8888\/api\/recipes\/893fb726-5eeb-4cce-8d03-554c835285a5\/relationships\/tags",
"related": "http:\/\/localhost:8888\/api\/recipes\/893fb726-5eeb-4cce-8d03-554c835285a5\/tags"
}
}
},
"links": {
"self": "http:\/\/localhost:8888\/api\/recipes\/893fb726-5eeb-4cce-8d03-554c835285a5"
}
},
"links": {
"self": "http:\/\/localhost:8888\/api\/recipes\/893fb726-5eeb-4cce-8d03-554c835285a5?include=field_image%2Cfield_image.field_image%2Cfield_image.field_image.file--file%2Ctags%2Cfield_image.owner%2Cfield_image.field_image.owner&fields%5Bimage%5D=image&fields%5Bfile--file%5D=url%2Cuuid&fields%5Brecipes%5D=title%2Cdifficulty%2Cingredients%2CtotalTime%2CpreparationTime%2Cinstructions%2Cimage%2Ctags%2C&fields%5Btags%5D=tid%2Cname"
},
"included": [
{
"type": "images",
"id": "9f206940-1cf8-42c9-9fc9-3127b5c307a8",
"attributes": {
"internalId": 194,
"name": "mermaid_smoothie.jpg",
"isPublished": true,
"createdAt": "2017-06-16T10:54:12+0200",
"updatedAt": "2017-06-16T10:54:12+0200"
},
"relationships": {
"mediaType": {
"data": {
"type": "mediaBundles",
"id": "53bf8af2-7151-4462-ae4c-ca2794b7beca"
},
"links": {
"self": "http:\/\/localhost:8888\/api\/images\/9f206940-1cf8-42c9-9fc9-3127b5c307a8\/relationships\/mediaType",
"related": "http:\/\/localhost:8888\/api\/images\/9f206940-1cf8-42c9-9fc9-3127b5c307a8\/mediaType"
}
},
"thumbnail": {
"data": {
"type": "files",
"id": "6cf65a6c-40e7-4a72-928a-93cd1bbc278b",
"meta": {
"alt": "Thumbnail",
"title": "mermaid_smoothie.jpg",
"width": null,
"height": null
}
},
"links": {
"self": "http:\/\/localhost:8888\/api\/images\/9f206940-1cf8-42c9-9fc9-3127b5c307a8\/relationships\/thumbnail",
"related": "http:\/\/localhost:8888\/api\/images\/9f206940-1cf8-42c9-9fc9-3127b5c307a8\/thumbnail"
}
},
"owner": {
"data": {
"type": "users",
"id": "bc91e1d5-17cd-4f4f-8b2f-27d4eaeb8d5c"
},
"links": {
"self": "http:\/\/localhost:8888\/api\/images\/9f206940-1cf8-42c9-9fc9-3127b5c307a8\/relationships\/owner",
"related": "http:\/\/localhost:8888\/api\/images\/9f206940-1cf8-42c9-9fc9-3127b5c307a8\/owner"
}
},
"imageFile": {
"data": {
"type": "files",
"id": "6cf65a6c-40e7-4a72-928a-93cd1bbc278b",
"meta": {
"alt": null,
"title": null,
"width": null,
"height": null
}
},
"links": {
"self": "http:\/\/localhost:8888\/api\/images\/9f206940-1cf8-42c9-9fc9-3127b5c307a8\/relationships\/imageFile",
"related": "http:\/\/localhost:8888\/api\/images\/9f206940-1cf8-42c9-9fc9-3127b5c307a8\/imageFile"
}
}
},
"links": {
"self": "http:\/\/localhost:8888\/api\/images\/9f206940-1cf8-42c9-9fc9-3127b5c307a8"
}
},
{
"type": "tags",
"id": "5724bff1-b68c-43a0-ba5f-4f83fc6f1a9f",
"attributes": {
"name": "drink"
},
"links": {
"self": "http:\/\/localhost:8888\/api\/tags\/5724bff1-b68c-43a0-ba5f-4f83fc6f1a9f"
}
},
{
"type": "tags",
"id": "7832b43b-a48c-4532-a37b-cec36cd3f69b",
"attributes": {
"name": "asian"
},
"links": {
"self": "http:\/\/localhost:8888\/api\/tags\/7832b43b-a48c-4532-a37b-cec36cd3f69b"
}
},
{
"type": "files",
"id": "6cf65a6c-40e7-4a72-928a-93cd1bbc278b",
"attributes": {
"internalId": 194,
"filename": "mermaid_smoothie.jpg",
"uri": "mermaid_smoothie.jpg",
"mimetype": "image\/jpeg",
"size": null,
"isPublished": true,
"createdAt": "2017-06-16T10:54:12+0200",
"updatedAt": "2017-06-16T10:54:12+0200",
"url": "\/mermaid_smoothie.jpg"
},
"relationships": {
"owner": {
"data": null
}
},
"links": {
"self": "http:\/\/localhost:8888\/api\/files\/6cf65a6c-40e7-4a72-928a-93cd1bbc278b"
}
}
],
"meta": {
"errors": [
{
"title": "Forbidden",
"status": 403,
"detail": "The current user is not allowed to GET the selected resource.",
"links": {
"info": "http:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-sec10.html#sec10.4.4"
},
"code": 0,
"id": "\/user--user\/bc91e1d5-17cd-4f4f-8b2f-27d4eaeb8d5c",
"source": {
"pointer": "\/data"
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment