Source: https://www.youtube.com/watch?v=5WXYw4J4QOU
POST
,GET
,PUT
,DELETE
!= CRUD- no verbs -> just nouns for Resources:
/applications
or/applications/123
- Possible Responses: Collection of Resources (e.g. with Links) or One instance of a Resource
- Keep your API course grained to be scaleble to future requirements
- For Resources: Be as specific as possible:
/customers
vs./newsletter-customers
and/registered-customers
PUT
for Create: Can be used when the Client has the ability to create an identifier for the Resource himself. But it has to contain a full replacement of the dataset:PUT /applications/123