Neighborhoods
Name | Description |
---|---|
token | token |
neighborhood[name] | Name |
neighborhood[description] | Description |
neighborhood[welcome_message] | Welcome message |
neighborhood[ethics] | Ethics |
neighborhood[latitude] | Latitude |
neighborhood[longitude] | Longitude |
neighborhood[interests] | Interests |
neighborhood[other_interest] | Other interest |
neighborhood[neighborhood_image_id] | Neighborhood image id |
neighborhood[google_place_id] | Google place id |
Content-Type: application/json Host: example.org Cookie:
POST api/v1/neighborhoods
{"token":"foobar113","neighborhood":{"name":"Foot Paris 17è","description":"Pour les passionnés de foot du 17è","ethics":null,"latitude":48.86,"longitude":2.35,"interests":["sport"],"neighborhood_image_id":3,"google_place_id":"ChIJQWDurldu5kcRmj2mNTjxtxE"}}
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/"734bdc2390ccff80a3d12e11303bb673" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: b9e6ebfd-fe58-47b4-978c-4a7f99584a05 X-Runtime: 0.023238 Content-Length: 558
201 Created
{ "neighborhood": { "id": 14, "name": "Foot Paris 17è", "description": "Pour les passionnés de foot du 17è", "welcome_message": null, "member": true, "members_count": 1, "image_url": "https://foobar.s3.eu-west-1.amazonaws.com/foobar_url", "interests": [ "sport" ], "ethics": null, "past_outings_count": 0, "future_outings_count": 0, "has_ongoing_outing": false, "address": { "latitude": 48.86, "longitude": 2.35, "display_address": "174, rue Championnet, 75017" }, "user": { "id": 115, "display_name": "John D.", "avatar_url": null }, "members": [ { "id": 115, "display_name": "John D.", "avatar_url": null } ] } }