feat: Locations: Marker endpoints
resah opened this issue · 0 comments
resah commented
This issue belongs to the feature "Multiple locations": Since many offices consist of multiple floors or even different locations, it should be possible to create location with their dedicated floor plan.
Backend
Adjust existing marker endpoints
GET
/api/locations/:id/markers
- get markers for locationPOST
/api/locations/:id/markers
- add new markerGET
/api/locations/:id/markers/:markerId
- get marker by IDPUT
/api/locations/:id/markers/:markerId
- update a markerDELETE
/api/locations/:id/markers/:markerId
- delete a marker
Frontend
- Adjust endpoints
- Adjust share links and routes with location
- List locations in nav bar
- Show long name in expanded nav bar
- Show short name in collapsed nav bar
- CRUD
- Allow selecting one location
- Switch floorplan image on selection
- Selected location is marked
- Only markers for the selected location are shown
- Number of (visible) markers is shown for each location