Route | verb | queries | result |
---|---|---|---|
/api/users | GET | all users sorted by createdAt | |
/api/users | GET | page=2,perPage=4 | gives 4 results on page 2, Pagination available |
/api/users | POST | posts a new user on to the database | |
/api/users/:id | PATCH | id | use id from get users to update the user |
/api/users/:id | DELETE | id | use id from get users to delete the user |
/api/users?lat=17.455827&long=78.427935 | GET | lat,long | users near the given lat and long in sorted order |
manoharsolleti / mongoapigeojson Goto Github PK
View Code? Open in Web Editor NEWREST API with mongo geojson addresses.