Skip to content

feat: add HEAD methods for /file/{id} and /entity/{id}/rocrate#11

Merged
johnf merged 1 commit intomainfrom
feat/head-methods
Mar 30, 2026
Merged

feat: add HEAD methods for /file/{id} and /entity/{id}/rocrate#11
johnf merged 1 commit intomainfrom
feat/head-methods

Conversation

@johnf
Copy link
Copy Markdown
Collaborator

@johnf johnf commented Mar 27, 2026

Summary

  • Add HEAD method support for /file/{id} and /entity/{id}/rocrate endpoints in the OpenAPI spec

Test plan

  • Verify the OpenAPI spec validates correctly
  • Confirm HEAD methods are documented with correct response headers

…nAPI spec

Add HEAD endpoints for media handling that return metadata headers
(Content-Type, Content-Length, ETag, Last-Modified) without a response
body. Also add matching response headers to GET /entity/{id}/rocrate
for HTTP semantics consistency. Content-Type and Content-Length are
marked as required on both HEAD responses and the updated GET response.
@johnf johnf merged commit 31ccc40 into main Mar 30, 2026
@johnf johnf deleted the feat/head-methods branch March 30, 2026 23:44
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.

2 participants