|
|
Endpoints |
|
|
\ No newline at end of file |
|
|
# Endpoints
|
|
|
|
|
|
| Request | Endpoint | Description |
|
|
|
| ------- | --------------------- | ------------------------ |
|
|
|
| POST | /events/ | You should describe here |
|
|
|
| GET | /events/:id/test | You should describe here |
|
|
|
| GET | /events/:id/test | You should describe here |
|
|
|
| GET | /events/:id/test | You should describe here |
|
|
|
| GET | /events/:id/test | You should describe here |
|
|
|
|
|
|
# Examples:
|
|
|
|
|
|
## Post: Events
|
|
|
|
|
|
Request:
|
|
|
```
|
|
|
GET /events/1357
|
|
|
Content-Type: application/json
|
|
|
```
|
|
|
|
|
|
Payload:
|
|
|
```
|
|
|
{
|
|
|
title: "Baile do example",
|
|
|
description: "James Bond contando como horas"
|
|
|
}
|
|
|
```
|
|
|
Response:
|
|
|
```
|
|
|
{
|
|
|
title: "Baile do example",
|
|
|
description: "James Bond contando como horas"
|
|
|
}
|
|
|
```
|
|
|
---
|
|
|
|
|
|
## Get: Events Info
|
|
|
|
|
|
Request:
|
|
|
```
|
|
|
GET /events/1357
|
|
|
Content-Type: application/json
|
|
|
```
|
|
|
|
|
|
```
|
|
|
Response:
|
|
|
```
|
|
|
{
|
|
|
title: "Baile do example",
|
|
|
description: "James Bond contando como horas"
|
|
|
}
|
|
|
``` |