Last active
May 20, 2018 12:13
-
-
Save appsoluut/07fa51c6c44fbc340d8c7102e4c95580 to your computer and use it in GitHub Desktop.
Polymorphic RESTful response
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"article": { | |
"title": "Hello world", | |
"body": [{ | |
"type": "text", | |
"text": "Hi there" | |
}, { | |
"type": "image", | |
"source": "https://example.com/hello-world-banner.jpg", | |
"author": "John Doe", | |
"description": "Hello World! banner" | |
}, { | |
"type": "video", | |
"source": "http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_surround.avi", | |
"thumbnail": "https://peach.blender.org/wp-content/uploads/dl_1080p.jpg", | |
"title": "Big Buck Bunny", | |
"duration": 574 | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment