-
Notifications
You must be signed in to change notification settings - Fork 9
routes
mlaroche edited this page Jul 19, 2018
·
4 revisions
- Plural entity name.
- No final slash
/
to path - Action on entity prefixed by an underscore
_
- Pagination and sorting parameter listed in
URL
Element | Action | Format | Verb | example |
---|---|---|---|---|
Liste | Load | /entities | GET | /commandes |
Recherche | Load | /entities/_search | POST | /commandes/_search?order=desc |
Entité portant le sujet | Load | /entities/:id | GET | /commandes/123 |
Partie d'une entité | Load | /entities/:id/sub-enitity-detail | GET | /commandes/123/address |
Liste d'une entité | Load | /entities/:id/sub-enitites | GET | /commandes/123/transaction-lines |
Element d'une liste d'entite | Load | /entities/:id/sub-enitites/:sid | GET | /commandes/123/transaction-lines/998 |
Création d'une entité | Creation | /entities | POST | /commandes |
Mise à jour d'une entité | Update | /entities/:id | PUT | /commandes/123 |
Suppression d'une entité | Delete | /entities/:id | DELETE | /commandes/123 |
Action sur une entité | Action | /entities/:id/_action | POST | /commandes/123/_export |