Skip to content

CP-9130 Document Training materials - #154

Merged
mattkepple merged 1 commit into
mainfrom
CP-9130-training-materials
Nov 13, 2026
Merged

mattkepple merged 1 commit into
mainfrom
CP-9130-training-materials

Conversation

@mattkepple

Copy link
Copy Markdown
Contributor

For CP-9130. The Rails endpoints are in MakerbleDev/makerble#17635, PR 5 of 5, and training_material_id on Tours and Announcements is in MakerbleDev/makerble#17634.

  • openapi.yaml:
    • A "Training Materials" tag.
    • GET/POST /organisations/{organisation_id}/training_materials and PATCH/DELETE /organisations/{organisation_id}/training_materials/{id}. They use the shared Page, PerPage and LastSyncDatetime parameters, the Unauthorized, ForbiddenError, NotFound and UnprocessableEntityList responses, and request examples.
    • The TrainingMaterial and TrainingMaterialInput schemas.
    • training_material_id on Tour, TourInput, Announcement and AnnouncementInput.
    • These match the vendored copy the Rails contract specs check against.
  • server.js: a Training Materials section with four endpoint cards, and a nav link. The Welcome Tours and Announcements cards also mention training_material_id.

The diff touches only openapi.yaml and server.js, and npm run check passes.

Release timing: the API docs are pre-launch, so this may be merged once reviewed, before the Rails change reaches production. Once the docs launch publicly, this should wait until the endpoints are live.


Generated by Claude Code

The four /organisations/{organisation_id}/training_materials operations,
the TrainingMaterial schemas, and training_material_id on Tours and
Announcements, with their endpoint cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F1a5xpn6dUm4coiCxDMmQL
@vercel

vercel Bot commented Nov 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api-docs Ready Ready Preview Nov 12, 2026 9:41pm UTC

@mattkepple
mattkepple marked this pull request as ready for review November 13, 2026 06:52
@mattkepple
mattkepple merged commit 3448f2b into main Nov 13, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — ad4663ec Deployed Nov 12, 2026 by vercel[bot]
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