Neighborhoods
| Name | Description |
|---|---|
| id | id |
| token | token |
| neighborhood[name] | Name |
| neighborhood[ethics] | Ethics |
| neighborhood[latitude] | Latitude |
| neighborhood[longitude] | Longitude |
| neighborhood[interests] | Interests |
| neighborhood[image_url] | Image url |
Content-Type: application/json Host: example.org Cookie:
PATCH api/v1/neighborhoods/15
{"token":"foobar115","neighborhood":{"name":"new name","ethics":"new ethics"}}
X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-Download-Options: noopen X-Permitted-Cross-Domain-Policies: none Referrer-Policy: strict-origin-when-cross-origin Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET,POST,PUT,PATCH,DELETE Access-Control-Allow-Headers: Origin,Accept,Content-Type,X-Requested-With,X-CSRF-Token,X-API-KEY Content-Type: application/json; charset=utf-8 ETag: W/"f404cde3b605d04476e8062a9b02acd8" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: 0ef62440-c3a3-414a-8a9d-eeba5daca0ea X-Runtime: 0.023477 Content-Length: 482
200 OK
{
"neighborhood": {
"id": 15,
"name": "new name",
"description": "Pour les passionnés de foot du 17è",
"welcome_message": null,
"member": true,
"members_count": 1,
"image_url": null,
"interests": [
"sport"
],
"ethics": "new ethics",
"past_outings_count": 0,
"future_outings_count": 0,
"has_ongoing_outing": false,
"address": {
"latitude": 48.86,
"longitude": 2.35,
"display_address": ""
},
"user": {
"id": 117,
"display_name": "John D.",
"avatar_url": null
},
"members": [
{
"id": 117,
"display_name": "John D.",
"avatar_url": null
}
]
}
}