• Save
Full-on Hypermedia APIs with Hydra
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Full-on Hypermedia APIs with Hydra

  • 2,497 views
Uploaded on

Presented at the API Strategy & Practice Conference in Amsterdam, Netherlands

Presented at the API Strategy & Practice Conference in Amsterdam, Netherlands

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,497
On Slideshare
2,440
From Embeds
57
Number of Embeds
5

Actions

Shares
Downloads
0
Comments
0
Likes
8

Embeds 57

https://twitter.com 26
http://lanyrd.com 23
http://www.slideee.com 5
http://syncer.jp 2
http://www.linkedin.com 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Full-on Hypermedia APIs Markus Lanthaler
  • 2. { "id": "as14", "name": "API Strategy & Practice Conference", "startDate": "2014-03-26", "endDate": "2013-03-28" } http://example.com/events/as14
  • 3. { "id": "as14", "name": "API Strategy & Practice Conference", "startDate": "2014-03-26", "endDate": "2013-03-28" } http://example.com/events/as14
  • 4. Link: <http://example.com/events/as14/attendees/> { "id": "as14", "name": "API Strategy & Practice Conference", "startDate": "2014-03-26", "endDate": "2013-03-28" } http://example.com/events/as14
  • 5. Link: <http://example.com/events/as14/attendees/>; rel="http://example.com/rels/attendees" { "id": "as14", "name": "API Strategy & Practice Conference", "startDate": "2014-03-26", "endDate": "2013-03-28" } http://example.com/events/as14
  • 6. Link: <http://example.com/events/as14/attendees/>; rel="http://example.com/rels/attendees" { "id": "as14", "name": "API Strategy & Practice Conference", "startDate": "2014-03-26", "endDate": "2013-03-28" } http://example.com/events/as14
  • 7. Link: <http://example.com/events/as14/attendees/>; rel="http://example.com/rels/attendees" { 69 64: 61 73 31 34, 6E 61 6D 65: 41 50 49 20 53 74 72 61 74 65 67 79 … 73 74 61 72 74 44 61 74 65: 32 30 31 34 2D 30 33 … 65 6E 64 44 61 74 65: 32 30 31 33 2D 30 33 2D 32 … } http://example.com/events/as14
  • 8. Link: <http://example.com/events/as14/attendees/>; rel="http://example.com/rels/attendees" http://example.com/events/as14 /events/as14 /events/as14/attendees
  • 9. Link: <http://example.com/events/as14/attendees/>; rel="http://example.com/rels/attendees" { 69 64: 61 73 31 34, 6E 61 6D 65: 41 50 49 20 53 74 72 61 74 65 67 79 … 73 74 61 72 74 44 61 74 65: 32 30 31 34 2D 30 33 … 65 6E 64 44 61 74 65: 32 30 31 33 2D 30 33 2D 32 … } http://example.com/events/as14
  • 10. Link: <http://example.com/events/as14/attendees/>; rel="http://example.com/rels/attendees" { "id": "as14", "name": "API Strategy & Practice Conference", "startDate": "2014-03-26", "endDate": "2013-03-28" } http://example.com/events/as14
  • 11. { "id": "as14", "name": "API Strategy & Practice Conference", "startDate": "2014-03-26", "endDate": "2013-03-28", "attendees": "/events/as14/attendees/" } http://example.com/events/as14
  • 12. { "@context": { "@vocab": "http://schema.org/" }, "id": "as14", "name": "API Strategy & Practice Conference", "startDate": "2014-03-26", "endDate": "2013-03-28", "attendees": "/events/as14/attendees/" } http://example.com/events/as14
  • 13. { "@context": { "@vocab": "http://schema.org/" }, "id": "as14", "name": "API Strategy & Practice Conference", "startDate": "2014-03-26", "endDate": "2013-03-28", "attendees": "/events/as14/attendees/" } http://example.com/events/as14
  • 14. { "@context": { "@vocab": "http://schema.org/" }, "@id": "as14", "name": "API Strategy & Practice Conference", "startDate": "2014-03-26", "endDate": "2013-03-28", "attendees": "/events/as14/attendees/" } http://example.com/events/as14
  • 15. { "@context": { "@vocab": "http://schema.org/" }, "@id": "as14", "name": "API Strategy & Practice Conference", "startDate": "2014-03-26", "endDate": "2013-03-28", "attendees": { "@id": "/events/as14/attendees/" } } http://example.com/events/as14
  • 16. { "@context": { "@vocab": "http://schema.org/" }, "@id": "/events/as14/attendees/" }
  • 17. { "@context": [ { "@vocab": "http://schema.org/" }, "http://www.w3.org/ns/hydra/core" ], "@id": "/events/as14/attendees/" }
  • 18. { "@context": [ { "@vocab": "http://schema.org/" }, "http://www.w3.org/ns/hydra/core" ], "@id": "/events/as14/attendees/", "operation": { "@type": "AddAction", "method": "POST", "expects": { "@id": "Person", "supportedProperty": { "property": "name", "required": true } } } }
  • 19. { "@context": [ { "@vocab": "http://schema.org/" }, "http://www.w3.org/ns/hydra/core" ], "@id": "/events/as14/attendees/", "operation": { "@type": "AddAction", "method": "POST", "expects": { "@id": "Person", "supportedProperty": { "property": "name", "required": true } } } }
  • 20. { "@context": [ { "@vocab": "http://schema.org/" }, "http://www.w3.org/ns/hydra/core" ], "@id": "http://schema.org/attendees", "supportedOperation": { "@type": "AddAction", "method": "POST", "expects": { "@id": "Person", "supportedProperty": { "property": "name", "required": true } } } }
  • 21. Hydra Console
  • 22. © 2014, Markus Lanthaler. Some Rights Reserved. http://creativecommons.org/licenses/by-nc-sa/4.0/ Thank You
  • 23. © 2014, Markus Lanthaler. Some Rights Reserved. http://creativecommons.org/licenses/by-nc-sa/4.0/ SpecialThanks to
  • 24. Questions? Markus Lanthaler http://www.markus-lanthaler.com @MarkusLanthaler mail@markus-lanthaler.com
  • 25. Image Credits (1) http://www.flickr.com/photos/piper/2890945512/ (13) http://schema.org/attendees (14) http://schema.org/Event (18) http://www.vonwong.com/