Web-Team-IITI-Gymkhana / tpc-backend

https://tpc.iiti.ac.in/api/v1
1 stars 14 forks source link

Recruiter Table #60

Closed cse210001015 closed 7 months ago

cse210001015 commented 8 months ago

Recruiter

Get

Table (/):

Modal (/:id):

Query Params:

Filters for Get:

Fetch data for adding/updating recruiter (/add):

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.