Commit graph

168 commits

Author SHA1 Message Date
Laura Klünder
3fc1bfa5ed serialize baserouterproxy correctly 2024-12-09 15:34:06 +01:00
Jenny Danzmayr
15f2eab217 fixed serialization of lazy attributes that evaluate to None
Without this `None` is returned as the string 'None'.
Needed by at least the I18nField
2024-12-05 03:25:16 +01:00
Laura Klünder
3ab84b6e8d remove new_serialize, this is now the new standard 2024-12-04 15:48:48 +01:00
Laura Klünder
f2f67a1cbb route result should use more schema 2024-12-04 15:27:06 +01:00
Laura Klünder
907cc43214 serialize CustomLocation 2024-12-04 13:01:02 +01:00
Laura Klünder
b47e97bb81 new serializer for all locations 2024-12-03 18:42:33 +01:00
Laura Klünder
35a8738424 implement new serialize for level 2024-12-03 14:18:16 +01:00
Laura Klünder
980520b590 add stats endpoint 2024-03-29 14:17:51 +01:00
Gwendolyn
2548d62776 theming should be fine now 2024-03-28 17:38:09 +01:00
Laura Klünder
0fd789173a change all of the MeshMessages c-models from dataclasses to pydantic 2024-03-09 17:19:08 +01:00
Laura Klünder
ebaeef920a mesh_api_router shall not be imported if mesh is disabled 2024-02-07 19:57:56 +01:00
Laura Klünder
9917a78a05 disable mesh api if mesh is disabled 2024-02-07 19:38:03 +01:00
Gwendolyn
16f55f472b enforce that the session auth endpoint is not used with api keys 2023-12-28 16:04:05 +01:00
Laura Klünder
c1d9a011cf make linter happy 2023-12-24 16:07:07 +01:00
Gwendolyn
9806472083 support MultiPolygon geojson in geometry schemas (Fixes C3NAV-37C3-1, Fixes C3NAV-37C3-12) 2023-12-21 23:14:09 +01:00
Gwendolyn
511a40fb5a force session for all users, even not logged in, to ensure they can save routing settings via api 2023-12-21 16:45:53 +01:00
Laura Klünder
3477354688 access permissions can now also be given by group 2023-12-19 19:48:31 +01:00
Gwendolyn
09741b9cee fix proxy string validation 2023-12-17 13:46:28 +01:00
Gwendolyn
478057e515 fix api permission error message 2023-12-12 19:14:03 +01:00
Gwendolyn
4b1ac9f194 convert django lazy string proxies to strings in the base schema validator, rather than in the serialization code of each source model 2023-12-11 20:59:19 +01:00
Laura Klünder
ef83e73a36 make linter happy 2023-12-11 19:02:19 +01:00
Laura Klünder
30b0c12ebe remove debug statements and fix stuff etc 2023-12-11 18:50:36 +01:00
Laura Klünder
34af60782c merge RangeLocator into Locator and modernize code 2023-12-07 02:21:46 +01:00
Gwendolyn
7862ec2765 raise APIKeyInvalid if no api key is provided 2023-12-05 15:36:58 +01:00
Laura Klünder
4491f68dc7 move api auth from authorization header to X-API-Key header 2023-12-04 23:07:45 +01:00
Laura Klünder
1a0c4e63f5 lots of small fixes and todo removals 2023-12-04 22:21:48 +01:00
Laura Klünder
8ac67ed014 don't scream at API docs readers 2023-12-04 19:32:11 +01:00
Laura Klünder
964574e535 more map api documentation improvements 2023-12-04 18:58:49 +01:00
Laura Klünder
4d57b81ad1 remove rest framework import 2023-12-04 16:19:34 +01:00
Laura Klünder
4be79776cb update BoundsSchema docs 2023-12-04 13:55:24 +01:00
Laura Klünder
87ef037421 more api docs and tweaks for auth and updates API 2023-12-04 13:46:32 +01:00
Laura Klünder
64088759f5 more API docs 2023-12-04 13:09:51 +01:00
Laura Klünder
e5e3a6b7e2 make redoc look prettier 2023-12-03 22:52:06 +01:00
Laura Klünder
ba4c2b7d0a rename newapi to api 2023-12-03 21:55:08 +01:00
Laura Klünder
caf23d053c goodbye django rest framework 2023-12-03 21:50:55 +01:00
Laura Klünder
0e65efcbbc lets group mapdata api v2 endpoints better and make sure descriptions are shown 2023-12-03 21:15:48 +01:00
Laura Klünder
ed94b81ecb routing is not a write operation 2023-12-03 20:06:16 +01:00
Laura Klünder
93f70fa0b8 add fetch_updates api v2 endpoint 2023-12-03 19:25:44 +01:00
Laura Klünder
828d781938 improve api documentation for redoc 2023-12-03 19:04:23 +01:00
Laura Klünder
3ece0418db provide both swagger and redoc 2023-12-03 18:46:02 +01:00
Laura Klünder
75b6d401ee remove unnecessary imports 2023-12-03 18:12:59 +01:00
Laura Klünder
12220823c3 missing import 2023-12-03 18:03:59 +01:00
Laura Klünder
bd7d2e9ffa introducing AnyGeometrySchema 2023-12-03 18:03:13 +01:00
Laura Klünder
cf765acc00 remove old api secret 2023-12-03 16:39:11 +01:00
Laura Klünder
5c203a7a2b editor geometries now available in new API 2023-12-03 16:37:05 +01:00
Gwendolyn
b6f3b8459f fix api secret valid until 2023-12-02 02:25:43 +01:00
Laura Klünder
152c9c2ee7 update some api endpoint summarys 2023-12-02 01:38:12 +01:00
Laura Klünder
29a1106e93 fix api secret auth (fixes #118) 2023-12-02 01:32:41 +01:00
Laura Klünder
7c12b649e3 add auth status api endpoint 2023-12-02 01:31:58 +01:00
Laura Klünder
bf2dd3b33b add editor API stubs 2023-12-01 22:59:57 +01:00