POST
/locations
curl \
--request POST 'http://localhost:8000/locations' \
--header "Content-Type: application/json" \
--data '{"name":"Varanda"}'
Request examples
{
"name": "Varanda"
}
Response examples (201)
{
"id": 2,
"name": "Sala"
}
Response examples (400)
{
"message": "The given data was invalid."
}