feat: new http api v3 - #248
Open
kairoaraujo wants to merge 5 commits into
Open
Conversation
kairoaraujo
force-pushed
the
feat/new-http-api-v3
branch
2 times, most recently
from
August 8, 2026 03:27
65259de to
f21ff03
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## feat/new-http-api-v2 #248 +/- ##
========================================================
+ Coverage 23.96% 25.54% +1.57%
========================================================
Files 67 103 +36
Lines 12412 14366 +1954
Branches 2307 2574 +267
========================================================
+ Hits 2975 3670 +695
- Misses 9140 10368 +1228
- Partials 297 328 +31 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
kairoaraujo
force-pushed
the
feat/new-http-api-v3
branch
from
August 8, 2026 04:16
f21ff03 to
641bd04
Compare
kairoaraujo
force-pushed
the
feat/new-http-api-v3
branch
from
August 8, 2026 08:14
641bd04 to
a4481bc
Compare
Collaborator
Author
|
kairoaraujo
force-pushed
the
feat/new-http-api-v3
branch
from
August 8, 2026 08:40
a4481bc to
a0604b3
Compare
kairoaraujo
marked this pull request as ready for review
August 8, 2026 08:56
The v3 endpoints build on a few framework-neutral helpers that v2 did not need: git repository access, collaborative-permission checks, transactional e-mail, and handle.net PID registration. The e-mail service reuses the mail sender configured on the legacy server, shared through config.email_interface (set in web/ui.py, declared in the runtime config).
Organize the v3 surface into resource-based packages that mirror the v2 layout: a datasets/ package (listing, publishing, references, tags, files, authors, collaborators, badges), a collections/ package, and focused top-level modules (profile, reviews, statistics, explore, admin, ssi, ro_crates, codemeta, authors, groups, accounts, tags, files, git). Each router carries a consistent "V3 / ..." tag, and endpoints document request/response examples drawn from real responses.
Register the api-v3 route group and mount the v3 router, and set api-v3 to the new stack in the shipped configs. The API docs gain a version selector: one /api/docs page with a v3/v2/all dropdown plus bookmarkable /api/docs/v2 and /api/docs/v3 pages, each backed by a schema filtered to that version. A single API_VERSIONS list drives all of it, so adding or retiring a version is a one-line change. The authentication guide now covers both v2 and v3 and shows how to obtain a token. Unhandled errors are logged with a traceback.
With api-v3 registered as a route group, /v3 paths now resolve to the new stack, so the dispatch and v2-group tests use a genuinely unregistered path to assert the fallback-to-legacy behaviour.
Signed-off-by: Kairo de Araujo <kairo@dearaujo.nl>
kairoaraujo
force-pushed
the
feat/new-http-api-v3
branch
from
August 13, 2026 14:20
a0604b3 to
61ff629
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New http for /api/v3
Changes
Approval Checklist
Closes #254
Closes #252
Screenshots (optional)
Before/After visuals, UI changes, or relevant logs.
Notes (optional)
Additional context, caveats, or follow-up tasks.