14. Authentication in Frontend #1
EcoChain
POST api.local/authenticate
POST frontend.local/authentication/login
EcoChainUserTokenProvider
EcoChainUserToken
23. Introduce “fields” parameter
Allow multi level control over returned fields
users/?fields=firstName,lastName
users/?fields=location.name
users/?fields=location.country.name
Retrieving data: A scalable solution
EcoChain
24.
25. "Several applications extending the Hypertext Transfer Protocol
(HTTP) require a feature to do partial resource modification. The
existing HTTP PUT method only allows a complete replacement of
a document. This proposal adds a new HTTP method, PATCH, to
modify an existing HTTP resource.“
Source: http://tools.ietf.org/html/rfc5789
Updating Resources
EcoChain
26. Require all fields in the domain object (except private ones)
Replaces the existing domain object
Updating using PUT
EcoChain
27. Only update the properties provided
Must trigger validation annotations
Request parameters not getting through in Flow!
http://forge.typo3.org/issues/54600
Updating using PATCH
EcoChain