ERRest Boot Camp
Version 10.1 by Pascal Robert on 2012/05/02 15:09
- What is REST
- Consistent URLs
- Stateless
- Using HTTP protocol to full extend (methods, cache, status codes, headers, redirections)
- Multiple representations of same object, but only one URL for object
- HATEOAS mention
- Using an existing model and explaining how it works
- BlogEntry
- title
- content
- dateInserted
- dateModified
- author
- BlogAuthor
- name
- password
- entries
- BlogEntry
- Basic REST routes (JSON)
- adding a migration to create the admin user
- adding a BlogAuthor user
- adding a BlogEntry
- getting a BlogEntry
- modifying a BlogEntry
- deleting a blogEntry
- viewing a author and its posts (in XML)
- HTML REST routes
- explain how URL are differents
- automatic HTML routing vs manual
- listing blog posts
- listing authors
- batching and sorting
- Better names: entity and attribute alias
- Handling status codes
- 200&201
- 404&410
- Returning 410 for entries that were deleted
- 405
- 50x
- 401&403
- when trying to create blog entry without logged user
- Redirections
- How to do them, codes 301 and 302 differences
- Adding headers to response
- Adding caching to the blog
- Adding non-EO support
- Adding keys for non-model attributes
- Date formats
- JSON Schema
RestContext
Properties
JSON Schema
HTML vs other formats
Response representation
Missing route
Missing object
POJO objects
Headers
Caching
Adding new format
Security
strictMode
Workflow
Query arguments and ERXRestFetchSpecification
ERXRestNameRegistry
MapClassDescription / NSDictionaryClassDescription