You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(pulpcore): add JSON content negotiation to the content app
Serve a paginated JSON directory listing when Accept prefers
application/json. Plugins can override Distribution.content_handler_json.
Listing pagination is applied in the database; cache keys use only
normalized JSON limit/offset.
ref #7887
Assisted-By: Cursor
Copy file name to clipboardExpand all lines: docs/dev/reference/code-api/plugins-api/content-app.md
+30-6Lines changed: 30 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,36 @@ Making a custom Handler is a two-step process:
13
13
2. Add the Handler to a route using aiohttp.server's [add_route()](https://aiohttp.readthedocs.io/en/stable/web_reference.html#aiohttp.web.UrlDispatcher.add_route) interface.
14
14
15
15
If content needs to be served from within the `Distribution`'s base_path,
16
-
overriding the `pulpcore.plugin.models.Distribution.content_handler` and
0 commit comments