Closed cse210001015 closed 7 months ago
Table (/):
Modal (/:id):
Query Params:
Filters for Get:
Items for Post (Always Bulk. Send an Array):
Update everything mentioned and nothing else.
Do everything or nothing using transactions. Handle error-giving messages at the Exception Filter level or at the service/controller.
{ success: T/F, message: , data: }. HTTP Status is sent with every response appropriately.
message is sent as so: GET: success: Success failure: error msg POST: success: Created Successfully failure: error msg. PATCH: success: Updated Successfully failure: error msg. DELETE: success: Deleted Successfully. failure: error msg.
data is sent as so: GET: requested data. POST: created data ids. PATCH: updated data ids. DELETE: no of rows deleted.
TPC Member
Get
Table (/):
Modal (/:id):
Query Params:
Filters for Get:
POST
Items for Post (Always Bulk. Send an Array):
Update
Update everything mentioned and nothing else.
Delete
Do everything or nothing using transactions. Handle error-giving messages at the Exception Filter level or at the service/controller.
The Response Object will be of the following format
{ success: T/F, message: , data: }. HTTP Status is sent with every response appropriately.
message is sent as so: GET: success: Success failure: error msg POST: success: Created Successfully failure: error msg. PATCH: success: Updated Successfully failure: error msg. DELETE: success: Deleted Successfully. failure: error msg.
data is sent as so: GET: requested data. POST: created data ids. PATCH: updated data ids. DELETE: no of rows deleted.