This commit is contained in:
2020-05-07 19:25:53 +00:00
parent 200e255820
commit 40a7a591a5

View File

@@ -133,7 +133,7 @@ todo: PLANNING WORKORDER considerations:
WorkOrder/{woid}/WorkOrderItems/{woitemid} <- CRUD single woitemid WorkOrder/{woid}/WorkOrderItems/{woitemid} <- CRUD single woitemid
WorkOrder/{woid}/WorkOrderItems/{woitemid}/Labors <- entire labor collection CRUD ops over all collection (also ADD new labor here (POST)) WorkOrder/{woid}/WorkOrderItems/{woitemid}/Labors <- entire labor collection CRUD ops over all collection (also ADD new labor here (POST))
WorkOrder/{woid}/WorkOrderItems/{woitemid}/Labors/{laborid} <- Crud on individual item WorkOrder/{woid}/WorkOrderItems/{woitemid}/Labors/{laborid} <- Crud on individual item
https://docs.microsoft.com/en-us/azure/architecture/best-practices/api-design#define-operations-in-terms-of-http-methods
This way is pretty solid, will result in a lot of routes but a lot of the code can be shared in the biz object, so for example if updating a labor or a collection of labor most code the same This way is pretty solid, will result in a lot of routes but a lot of the code can be shared in the biz object, so for example if updating a labor or a collection of labor most code the same
Efficiency: Efficiency:
Since there is a route for every bit of the workorder the client can pick how high up to update based on diff check Since there is a route for every bit of the workorder the client can pick how high up to update based on diff check