Usuário
POST /users
Parameters
name type data type description name required String N/A required String N/A password required String N/A birthday required Date N/A city required String N/A uf required String N/A phone required Long N/A restrictions required List Lista composta pelas restrições do usuário (nome e categoria)
Responses
http code content-type response 200text/plain;charset=UTF-8Usuário criado
Example cURL
curl -X POST -H "Content-Type: application/json" --data @post.json http://localhost:8080/users
Restrições
GET / restrictions
Parameters
None
Responses
http code content-type response 200text/plain;charset=UTF-8JSON List
Example cURL
curl -X GET -H "Content-Type: application/json" http://localhost:8080/restrictions
POST /restrictions
Parameters
name type data type description name required String Nome da restrição
Responses
http code content-type response 200text/plain;charset=UTF-8Restrição criada
Example cURL
curl -X POST -H "Content-Type: application/json" --data @post.json http://localhost:8080/restrictions