Skip to content

feat: API for RFC metadata fetch/filtering#8291

Merged
rjsparks merged 15 commits intoietf-tools:feat/rpc-apifrom
jennifer-richards:red-api
Dec 9, 2024
Merged

feat: API for RFC metadata fetch/filtering#8291
rjsparks merged 15 commits intoietf-tools:feat/rpc-apifrom
jennifer-richards:red-api

Conversation

@jennifer-richards
Copy link
Copy Markdown
Member

@jennifer-richards jennifer-richards commented Dec 1, 2024

This starts an API to be used by the RFC editor website (code name: red) to retrieve RFCs. So far, it deals only in metadata and authors. I've put these API endpoints under /api/red/ at least for now - we can argue about that later.

Allows filtering by several fields (stream, group, area, publication date) using query parameters. The OpenAPI spec will describe the syntax of the filters accurately (ietf/manage.py spectacular --file datatracker.yml to generate), but to get all SIP RFCs published between 2011 and 2013, you'd request http://localhost:8000/api/red/doc/?published_after=2011-01-01&published_before=2013-01-01&group=sip. The stream, group, and area filters accept multiple values, combined with "OR". Multiple values are requested by repeating the parameter, like ?group=sip&group=stir

Results are paginated with a limit of 500 results per request. To paginate, use ?limit=20&offset=20. The response JSON includes count, next, and previous fields with the total record count and links to previous/next pages of results. The actual results are in results.

@jennifer-richards jennifer-richards marked this pull request as draft December 1, 2024 20:20
@jennifer-richards jennifer-richards removed the request for review from rjsparks December 1, 2024 20:20
@jennifer-richards jennifer-richards marked this pull request as ready for review December 9, 2024 15:44
@rjsparks rjsparks merged commit a90cbad into ietf-tools:feat/rpc-api Dec 9, 2024
@jennifer-richards jennifer-richards deleted the red-api branch December 9, 2024 18:01
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Dec 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants