Skip to content

Backend Documentation

Kartikk R Pandian edited this page Dec 5, 2017 · 1 revision

Index

API Documenation

Search meetups

Endpoint
/searchMeetups
Method
GET
Fields
Key Description Type Required
search Search text matched with meetupName String Yes
Response

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}

Create meetup

Endpoint
/postMeetup
Method
POST
Fields
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
Response

Status codes: 200,501
Example:
code: 200 OK

{"status":200,"data":{"n":1,"opTime":{"ts":"6486328407205347335","t":2},"electionId":"7fffffff0000000000000002","ok":1},"message":null}

Get meetups

Endpoint
/getMeetups
Method
GET
Response

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}  

Search Nearby Meetups

Endpoint
/searchNearbyMeetups
Method
GET  
Fields
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
Response

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}

Get Meetup Details

Endpoint
/getMeetupDetails
Method
GET  
Fields
Key Description Type Required
meetupId Matched with meetupId Integer Yes
Response

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}

Signup

Endpoint
/users/signup
Method
POST  
Fields
Key Description Type Required
name User name String Yes
email 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
Response

Status codes: 200,400,501
Example:
code: 200 OK

Login

Endpoint
/users/login
Method
GET  
Fields
Key Description Type Required
email Email Id of user String Yes
password User's password String Yes
Response

Status codes: 200,400,501
Example:
code: 200 OK

Forgot Password

Endpoint
/users/forgot
Method
POST  
Fields
Key Description Type Required
email Email Id of user String Yes
Response

Status codes: 200,400,501
Example:
code: 200 OK

Setting Page

Endpoint
/updateData
Method
POST  
Fields
Key Description Type Required
Dynamic Value based on the edit link feild New value of user details to be modified String Yes
Response

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' } ]

Check Login

Endpoint
/users/islogin
Method
POST  
Fields
Key Description Type Required
email Email Id of user String Yes
password User's password String Yes
Response

Status codes: 200,400,501
Example:
code: 200 OK

Clone this wiki locally