Skip to content

feat: request Paperless-ngx REST API version 10 - #24

Open
Tzahreddin wants to merge 1 commit into
barryw:mainfrom
Tzahreddin:feat/paperless-api-v10
Open

feat: request Paperless-ngx REST API version 10#24
Tzahreddin wants to merge 1 commit into
barryw:mainfrom
Tzahreddin:feat/paperless-api-v10

Conversation

@Tzahreddin

Copy link
Copy Markdown

Summary

  • Bump the Paperless-ngx REST Accept header from API version 9 to 10 (current default on paperless-ngx 3.x).
  • Centralize the header in PaperlessOptions.ApiAcceptHeader / ApiVersion and cover it with unit tests.

Why

Paperless-ngx 3.0+ supports API versions 9 and 10 and defaults to 10. Aligning PaperlessMCP with version 10 keeps clients on the current API surface while remaining compatible with 3.0.5.

Test plan

  • dotnet test — 250/250 passed (via .NET 10 SDK container)
  • Live check against paperless-ngx 3.0.5:
    • Accept: application/json; version=8 → HTTP 406
    • version=9 → HTTP 200
    • version=10 → HTTP 200 with x-api-version: 10, x-version: 3.0.5

Made with Cursor

Align the Accept header with paperless-ngx 3.x defaults so clients
speak the current API version instead of legacy v9.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant