docs: add map markers to API reference (#783)
Co-authored-by: Kenneth Brewer <kennethbrewer3@protonmail.com>
This commit is contained in:
parent
132ec9c98a
commit
8864ee223b
|
|
@ -148,6 +148,15 @@ ZIM files provide offline Wikipedia, books, and other content via Kiwix.
|
||||||
| POST | `/api/maps/download-collection` | Download an entire collection by slug (async) |
|
| POST | `/api/maps/download-collection` | Download an entire collection by slug (async) |
|
||||||
| DELETE | `/api/maps/:filename` | Delete a local map file |
|
| DELETE | `/api/maps/:filename` | Delete a local map file |
|
||||||
|
|
||||||
|
### Map Markers
|
||||||
|
|
||||||
|
| Method | Path | Description |
|
||||||
|
|--------|------|-------------|
|
||||||
|
| GET | `/api/maps/markers` | List map markers |
|
||||||
|
| POST | `/api/maps/markers` | Add map marker (body: {"name": "Test Marker", "longitude": 0.0, "latitude": 0.0, "color": "yellow", "marker_type": "pin"} ) |
|
||||||
|
| PATCH | `/api/maps/markers/{id}` | Update a map marker (body: {"name": "Test Marker", "longitude": 0.0, "latitude": 0.0, "color": "yellow", "marker_type": "pin"} ) fields that don't change can be omitted|
|
||||||
|
| DELETE | `/api/maps/markers/{id}` | Delete a map marker |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Downloads
|
## Downloads
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue