Pug server repository for all your pug api routes.
1.0.0
$ npm install
$ grunt deploy
- Prevent creation of duplicate events (same address and time)
- More efficient way to remove expired events from a user's events list
'/api/users/:id/event'
GET request
Request body : {}
Response body: Array of event ids
'/api/events'
GET request
Request body : {}
Response body: Array of event objects
'/api/events/:id'
GET request
Request body : {}
Response body: Event object
'/api/events'
POST request
Request body : {
type: String,
location: String,
latitude: Number,
longitude: Number,
startTime: Date,
endTime: Date,
skillLevel: String
}
Response body: Event object
'/api/events/users/:id'
POST request
Request body : {
eventId: String
}
Response body: none
'/api/events/users/:id'
DELETE request
Request body : {
eventId: String
}
Response body: none
MIT