This repository has been archived by the owner on Jan 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added VMS_API documentation to the portal docs
- Loading branch information
1 parent
fd9d9f3
commit 1e8bf61
Showing
4 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
Api to communicate with VMS | ||
=========================== | ||
The purpose of building this API was to provide information about the meetups | ||
in Portal to VMS so that their volunteers could participate in them. Presently, | ||
there are three fields of meetups which are sent to VMS via the API:: | ||
|
||
1. Event Name - Title of the event going to be held. | ||
2. Start Date - The date from which the event would start. | ||
3. Venue - The location of the event. | ||
|
||
Users can send in a ``GET`` or a ``POST`` request to the specified `URL <https://localhost/meetup/api/v1/request_meetup_data/>`_ to access the meetup data. | ||
|
||
In case of a ``GET`` request, a list containing the details of all meetups | ||
in the ascending order of their dates will be returned : | ||
|
||
.. image:: ../_static/GET_request.png | ||
:align: center | ||
|
||
In case of a ``POST`` request, a list containing the details of all meetups | ||
greater than or equal to the posted date will be returned : | ||
|
||
.. image:: ../_static/POST_request.png | ||
:align: center | ||
|
||
Details of the API | ||
------------------ | ||
|
||
1. Use Case : Send event details for volunteers to contribute accordingly. | ||
|
||
2. API Method : GET/POST | ||
|
||
3. URL Parameters : ``https://localhost/meetup/api/v1/request_meetup_data/`` | ||
|
||
4. Request Body:: | ||
|
||
{ | ||
"Date” : “date after which all meetups are required (yyyy-mm-dd)” | ||
} | ||
|
||
5. Response Body - Success:: | ||
|
||
{ | ||
“Event Name/Title” : “ --------” | ||
“Start Date” : “-----------” | ||
“Venue” : “------------------” | ||
} | ||
|
||
6. Response Body - Error:: | ||
|
||
{ | ||
"message": "Please input a proper date" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters