4. RESTful Principles
Build on http protocol [get/put/post/delete]
Addressable resources – resources can be accessed via a URI
Uniform & constrained interface – small set of well-defined methods to manipulate resources
Representation oriented – different platforms need different formats:
Communicate statelessly – Stateless applications are easier to scale
Hypermedia As The Engine Of Application State (HATEOAS) – let your data formats drive state
transitions in your applications
13. Case study – rest3D viewer
browse/search/analyse/view
rest3d/assets : returns list of assets
What is an asset? What is the asset URI? How are they organized?
rest3d/search : return assets matching with search
What are the search criteria?
rest3d/assets/path/asset: return a particular asset
Source asset? Processed asset? For what platform/software ?
rest3d/asset/path/asset?build-options
Control server-side content pipeline
Note: this is not the rest3D API, examples used for illustration