https://projeto-final-m3.herokuapp.com/
GET /tables
GET /tables?tablename_like=:tablename
GET /tables?_page=:page&_limit=:maxTables
POST /register
Body:
{
"email": "kenzinho@kenzie.com.br",
"password": "kenzinho123",
"username": "kenzinho",
"myTables": []
}
id automático pelo json-server
POST /login
Body:
{
"email": "kenzinho@kenzie.com.br",
"password": "kenzinho123",
}
Headers:
{
"Authorization": "Bearer token"
}
GET /users
GET /users/:id?_embed=tables
GET /users?id=:id&tables
GET /users?username_like=:username
POST => /tables
Body:
{
"tablename": "Kenzie",
"owner": "id",
"system": "D&D",
"invite": "",
"password": "",
"maxParticipants": 10,
"participants": []
}
id automático pelo json-server
DELETE /tables/id