Skip to content

feat(API): improve GET /projects/{project_id}/screenshots/{id} documentation#1159

Closed
Stephen Lumenta (sbl) wants to merge 1 commit into
mainfrom
en-api-strings-screenshots-get-a-single-screenshot
Closed

feat(API): improve GET /projects/{project_id}/screenshots/{id} documentation#1159
Stephen Lumenta (sbl) wants to merge 1 commit into
mainfrom
en-api-strings-screenshots-get-a-single-screenshot

Conversation

@sbl

Copy link
Copy Markdown
Contributor

Fixes rubric dimensions: conceptual_clarity, error_documentation, example_quality, frontmatter_metadata, reference_completeness, schema_completeness, self_contained_examples, stable_identifiers, vocabulary_consistency

Part of DEVEX-60

Source-grounded via Phrase-Engineering/strings-app.

Changes

paths/screenshots/show.yaml

  • operationId corrected from screenshot/show to screenshots/show (stable_identifiers, vocabulary_consistency)
  • branch parameter converted from inline definition to $ref: ../../parameters.yaml#/branch (reference_completeness)
  • description expanded: states what the endpoint does, when to use it, explains the id field is a string code, documents access control (read scope + grant_read permission + Attachable Screenshots feature gate), and branch semantics (conceptual_clarity)
  • 403 response gains a description listing all three distinct paths to forbidden: missing read scope, insufficient user permission, and feature not on plan (error_documentation)
  • 200 response gains an inline example with realistic values derived from the serializer (example_quality, self_contained_examples)
  • Curl example uses a full URL with realistic project_id and screenshot id values (self_contained_examples, example_quality)

schemas/screenshot.yaml

  • Every property gains a description and an example value (schema_completeness)
  • Top-level example updated to use consistent realistic values matching the path-level example

…ntation

Fix rubric dimensions: conceptual_clarity, error_documentation,
example_quality, frontmatter_metadata, reference_completeness,
schema_completeness, self_contained_examples, stable_identifiers,
vocabulary_consistency.

- operationId corrected to screenshots/show (was screenshot/show)
- branch parameter uses shared $ref instead of inline duplicate
- description expanded with what/why/access-control/branch semantics
- 403 response lists all three distinct paths to forbidden
- response example added with realistic values derived from serializer
- curl example uses full URL with realistic project_id + screenshot id
- schema properties gain descriptions and per-field examples

Part of DEVEX-60. Source-grounded via Phrase-Engineering/strings-app.
@sbl Stephen Lumenta (sbl) deleted the en-api-strings-screenshots-get-a-single-screenshot branch June 8, 2026 21:14
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