-
Notifications
You must be signed in to change notification settings - Fork 4
Backend Documentation
- Search Meetups
- Create Meetup
- Get all Meetups
- Search Nearby Meetup
- Get Meetup Details
- Signup
- Login
- Forgot Password
- Setting Page
- Check Login
- UUID API
- Token Genaration API
- JSON Web Tokens
/searchMeetups
GET
| Key | Description | Type | Required |
|---|---|---|---|
| search | Search text matched with meetupName | String | Yes |
Status codes: 200,501
Example:
code: 200 OK
{"status":200,"data":[{"_id":"5a02961ceceb1a46a9825375","location":"Gainesville","agenda":"Angular 4","meetupName":"Angular meeting","thumbUrl":"http://poracaso.com/wp-content/uploads/2017/04/George-meetup.jpg","description":"Test description","coordinates":[29.6189168,-82.3728802],"meetupOwner":"Venkat"}],"message":null}
/postMeetup
POST
| Key | Description | Type | Required |
|---|---|---|---|
| meetupName | Search text matched with meetupName | String | Yes |
| meetupOwner | User name of event creator | String | Yes |
| description | Event description | String | No |
| agenda | Agenda for the event | String | No |
| location | Location address | String | No |
| coordinates | Coordinates to the event (Lat, long) | Double[] | Yes |
| thumbUrl | Url for event thumbnail | String | Yes |
| count | Number of attendees so far | Int | Yes |
Status codes: 200,501
Example:
code: 200 OK
{"status":200,"data":{"n":1,"opTime":{"ts":"6486328407205347335","t":2},"electionId":"7fffffff0000000000000002","ok":1},"message":null}
/getMeetups
GET
Status codes: 200,501
Example:
code: 200 OK
{"status":200,"data":[{"_id":"5a01f685188a2d090ce54193","location":"Gainesville","agenda":"dsfsdf","thumbUrl":"https://tctechcrunch2011.files.wordpress.com/2013/12/tc-meetups1.png","count":"400","meetupName":"sfsdfdsf","description":"jkjk","coordinates":[29.6217008,-82.3727242],"meetupOwner":"Venkat"},{"_id":"5a028f7f8e1f011438e9acf2","location":"Gainesville","agenda":"sdjsidsa","thumbUrl":"http://quantifiedself.com/wp-content/uploads/2017/04/600_459142880.jpeg","count":"600","description":"lorem impsum dimsim","meetupName":"Magnicia","meetupOwner":"Venkat","coorinates":["55.95","65.36"]},{"_id":"5a02950d340bf041b9b36869","meetupName":"sPostaman meetup","meetupOwner":"Kartikk","thumbUrl":"http://willvideoforfood.com/wp-content/uploads/2011/07/nalts017.jpg","count":"350"}],"message":null}
/searchNearbyMeetups
GET
| Key | Description | Type | Required |
|---|---|---|---|
| search | Searches if similar string is available in meetupName or tags | String | Yes |
| coordinates | Used to query all meetups in the vicinity (Lat, long) | Double[] | Yes |
Status codes: 200,501
Example:
code: 200 OK
{"status":200,"data":[{"_id":"5a01f685188a2d090ce54193","location":"Gainesville","agenda":"dsfsdf","thumbUrl":"https://tctechcrunch2011.files.wordpress.com/2013/12/tc-meetups1.png","count":"400","meetupName":"sfsdfdsf","description":"jkjk","coordinates":[29.6217008,-82.3727242],"meetupOwner":"Venkat"},{"_id":"5a028f7f8e1f011438e9acf2","location":"Gainesville","agenda":"sdjsidsa","thumbUrl":"http://quantifiedself.com/wp-content/uploads/2017/04/600_459142880.jpeg","count":"600","description":"lorem impsum dimsim","meetupName":"Magnicia","meetupOwner":"Venkat","coorinates":["55.95","65.36"]},{"_id":"5a02950d340bf041b9b36869","meetupName":"sPostaman meetup","meetupOwner":"Kartikk","thumbUrl":"http://willvideoforfood.com/wp-content/uploads/2011/07/nalts017.jpg","count":"350"}],"message":null}
/getMeetupDetails
GET
| Key | Description | Type | Required |
|---|---|---|---|
| meetupId | Matched with meetupId | Integer | Yes |
Status codes: 200,501
Example:
code: 200 OK
{"status":200,"data":[{"_id":"5a01f685188a2d090ce54193","location":"Gainesville","agenda":"dsfsdf","thumbUrl":"https://tctechcrunch2011.files.wordpress.com/2013/12/tc-meetups1.png","count":"400","meetupName":"sfsdfdsf","description":"jkjk","coordinates":[29.6217008,-82.3727242],"meetupOwner":"Venkat"}],"message":null}
/users/signup
POST
| Key | Description | Type | Required |
|---|---|---|---|
| name | User name | String | Yes |
| Email Id of user | String | Yes | |
| hometown | hometown of user | String | Yes |
| language | language preferences of user | String | Yes |
| birthday | date of birth of user | String | Yes |
| gender | user's gender | String | Yes |
| password | user's password | String | Yes |
Status codes: 200,400,501
Example:
code: 200 OK
/users/login
GET
| Key | Description | Type | Required |
|---|---|---|---|
| Email Id of user | String | Yes | |
| password | User's password | String | Yes |
Status codes: 200,400,501
Example:
code: 200 OK
/users/forgot
POST
| Key | Description | Type | Required |
|---|---|---|---|
| Email Id of user | String | Yes |
Status codes: 200,400,501
Example:
code: 200 OK
/updateData
POST
| Key | Description | Type | Required |
|---|---|---|---|
| Dynamic Value based on the edit link feild | New value of user details to be modified | String | Yes |
Status codes: 200,400,501
Example:
code: 200 OK
Userid U0018
[ { _id: 5a249497242af615349f6ea8,
name: 'siddhartha k',
email: 'siddhartha.hprs@gmail.com',
location: 'Gainesville',
hometown: 'Gainesville',
language: 'United States',
birthday: '2017-12-03',
gender: 'male',
bio: 'this is bio',
password: '$2a$10$6BPTfb.hZaaf.qm0ogCw1.UWuN4LX5WfrIkJQZKpdyfOFhevvLBje',
userId: 'U0018' } ]
/users/islogin
POST
| Key | Description | Type | Required |
|---|---|---|---|
| Email Id of user | String | Yes | |
| password | User's password | String | Yes |
Status codes: 200,400,501
Example:
code: 200 OK