Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Commit

Permalink
added VMS_API documentation to the portal docs
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi20161997 committed Jul 6, 2018
1 parent fd9d9f3 commit 1e8bf61
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
Binary file added docs/_static/GET_request.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/POST_request.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions docs/develop/api_for_vms.rst
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"
}
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Development of Systers Portal
develop/architecture
develop/communities
develop/groups_and_permissions
develop/api_for_vms


Indices and tables
Expand Down

0 comments on commit 1e8bf61

Please sign in to comment.