admin API refactoring (step 1) #939

Merged
lx merged 19 commits from refactor-admin into next-v2 2025-01-29 20:42:57 +00:00

19 commits

Author SHA1 Message Date
19454c1679 admin api: remove log message
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
ci/woodpecker/pr/debug Pipeline was successful
2025-01-29 19:47:37 +01:00
1c03941b19 admin api: fix panic on GetKeyInfo with no args
Some checks are pending
ci/woodpecker/push/debug Pipeline is running
ci/woodpecker/pr/debug Pipeline was successful
2025-01-29 19:26:16 +01:00
4f0b923c4f admin api: small fixes 2025-01-29 19:26:16 +01:00
420bbc162d admin api: clearer syntax for AddBucketAlias and RemoveBucketAlias 2025-01-29 19:26:16 +01:00
12ea4cda5f admin api: merge calls to manage global/local aliases 2025-01-29 19:26:16 +01:00
5fefbd94e9 admin api: rename allow/deny api calls in api v2 2025-01-29 19:26:16 +01:00
ba810b2e81 admin api: rename bucket aliasing operations 2025-01-29 19:26:16 +01:00
f8ed3fdbc4 fix test_website_check_domain 2025-01-29 19:26:16 +01:00
2daeb89834 admin api: fixes to openapi v2 spec 2025-01-29 19:26:16 +01:00
4cb45bd398 admin api: fix CORS to work in browser 2025-01-29 19:26:16 +01:00
d5ad797ad7 admin api: update v2 openapi spec 2025-01-29 19:26:16 +01:00
a99925e0ed admin api: initialize v2 openapi spec from v1 2025-01-29 19:26:16 +01:00
f538dc34d3 admin api: make all requests and responses (de)serializable 2025-01-29 19:26:16 +01:00
ed58f8b0fe admin api: update semantics of some endpoints, and update doc 2025-01-29 19:26:16 +01:00
5037b97dd4 admin api: add compatibility from v1/ to v2/ 2025-01-29 19:26:16 +01:00
af1a530834 admin api: refactor using macro 2025-01-29 19:26:16 +01:00
c99bfe69ea admin api: new router_v2 with unified path syntax 2025-01-29 19:26:16 +01:00
831f2b0207 admin api: make all handlers impls of a single trait 2025-01-29 19:26:16 +01:00
c1eb1610ba admin api: create structs for all requests/responess in src/api/admin/api.rs 2025-01-29 19:26:16 +01:00