18. Representations
View on a resource’s state at an instant in time.
XML: JSON: Other:
<BatResource> { • Images
<Id>1</Id> "Id":"1", • CSV
<Description> "Description":"Bataran • Custom
Batarang g", • ...
</Description> "Quantity":1
<Quantity>1</Quantity> }
</BatResource>
19. Verbs
Actions on a resource.
Create Read Update Delete
POST GET PUT DELETE
20. Hypermedia
HATEOAS: Hypermedia as the engine of application state
Linking your API together
{
"Id":"1",
"Description":"Batarang",
“Quantity":1,
“Links":
{
"Rel":"Next",
"Href":"http://localhost:8080/api/batresource/2"
}
}
21. HypeRRRRRRRmedia
• Relations
• Embedded resources
• Reference data
• Redistribution of effort
• Reduction of payload size
• Reflow
• Restriction of functionality
49. Summary
• REST
– Concepts
– Architectual values
– Left overs
• ASP.NET Web API
– Server
– Client
50. There is more
Slides and source on http://jefclaes.be
Extensibility?
• Next session (Raffaele Rialdi)
• http://github.com/JefClaes/aspnet-webapi-samples-tunisia
51. Please rate this session
Scan the code, go online, rate this session