Draft: Organization page
Issue: https://gitlab.com/incubateur-territoires/startups/espace-sur-demande/application/-/issues/457
Method
fetch /api/public/organizations/{slug}
to get Id and map bounds
Configure the map bounds
Then fetch /api/places
with filter facility.organization.id
Backend
Add an public endpoint:
GET /api/public/organizations/{slug}
Response:
{
"organization": {
"name": "Organization n°0",
"logo": {
"uniqId": "b3b8452f-b440-4002-8508-49b4ce68bfb3",
"urlS3": "fixtures\/fixtures_1.png",
"originalFilename": "client-image-1.png",
"fileSize": 10,
"createdAt": "2024-04-15T13:05:47+00:00",
"serveUrl": "http:\/\/localhost:3000\/api\/_dev\/images\/thumb\/fixtures\/fixtures_1.png"
},
"id": 1,
"isOrganization": true
},
"bounds": [
[
49.990437,
-0.532626
],
[
43.058534,
5.86131
]
]
}