From 9e8dbe02bb952732b5699cf6ffc5c08da8562ad6 Mon Sep 17 00:00:00 2001 From: jp-karthik Date: Sun, 29 May 2022 11:48:25 +0530 Subject: [PATCH] getApplications --- CDC_Backend/README.md | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/CDC_Backend/README.md b/CDC_Backend/README.md index e0b578f..03b5422 100644 --- a/CDC_Backend/README.md +++ b/CDC_Backend/README.md @@ -897,20 +897,47 @@ You may see some different errors which can be seen [here](#common-errors) ## `api/admin/getApplications` -This api is used to +This api is used to fetch all the applications applied by students for all placements ### How to Use? -Send a `POST` request to `api/admin/updateAdditionalInfo`
+Send a `POST` request to `api/admin/getApplications`
Request_Body: ```json { - "opening_id": "Q54IRZZMC3RP8F6", - "additional_info": ["School", "Place of Living", "Research Interests"] + "opening_id": "Q54IRZZMC3RP8F6" } ``` +### Response + +Response is a Json with these fields + +```json +{ + "action": "Get Applications", + "message": "Data Found", + "applications": "[]" +} +``` + +- action: Tells us about the message creator
+- message: Tells us what happened with our Request. + +### Status Codes + +The possible responses for this api request are as follows + +| Status Codes | Possible Messages | +| --------------- | ---------------------- | +| 200 OK | `Data Found` | +| 400 BAD_REQUEST | `Something Went Wrong` | + +You may see some different errors which can be seen [here](#common-errors) + +--- + # Company Portal APIs ## `api/company/addPlacement/`