Skip to content

CP-8843: Document Event Format get, create, edit and project endpoints - #55

Closed
mattkepple wants to merge 1 commit into
mainfrom
CP-8843-event-formats
Closed

mattkepple wants to merge 1 commit into
mainfrom
CP-8843-event-formats

Conversation

@mattkepple

Copy link
Copy Markdown
Contributor

What & Why

Companion to MakerbleDev/makerble#16880 (CP-8843 PR 4).

  • openapi.yaml: POST /event_categories (createEventFormat), GET / PATCH /event_categories/{id} (getEventFormat, updateEventFormat), POST /event_categories/{id}/projects (addEventFormatToProject), DELETE /event_categories/{id}/projects/{project_id} (removeEventFormatFromProject); schemas EventFormatInput, EventFormatDetail, EventFormatProject; response EventFormatAdminOnly. The same paths are vendored into the Rails repo's spec/support/api_schemas/openapi.yaml, where contract specs check the real responses against them.
  • server.js: the matching endpointCard(...) entries, and the Event Formats intro now says creating, editing and adding to projects are Organisation Admin only. Rendered locally to check.

Release timing

Don't merge until MakerbleDev/makerble#16880 is merged, so the docs don't describe endpoints that 404.

Links

Auto-fix may be enabled on this PR — replies to review comments could come from Claude rather than the named author.


Generated by Claude Code

GET, POST and PATCH /event_categories and POST and DELETE
/event_categories/{id}/projects, with their schemas and the
Organisation Admin rule, in openapi.yaml and as endpoint cards.

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

vercel Bot commented Oct 22, 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 Oct 22, 2026 1:55pm UTC

Copy link
Copy Markdown
Contributor Author

Brought into main by #200 (CP-9078). Get, create and edit of an Event Format were already documented there, so #200 added only the add/remove-from-project endpoints, EventFormatProject and EventFormatAdminOnly, taken from the Rails repo's contract-tested copy of the spec. Closing this draft.


Generated by Claude Code

@mattkepple mattkepple closed this Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Note from the coding session for CP-9078 (api-docs#200)

This covers #55, #56 and #57. I closed all three on purpose. They aren't lost: their content is on main, merged today through #200, which brought in the backlog of draft docs PRs whose Rails change was already in develop (Matt asked for this; the docs are pre-launch).

Please don't reopen these or redo them from main; that would duplicate what's there. If anything in #200's version differs from what CP-8843 needs, open a small PR against main for just that difference.

The MCP PRs are unaffected.


Generated by Claude Code

Copy link
Copy Markdown
Contributor Author

Note from the coding session for CP-8843 (#201)

Thanks. I checked #200 against these drafts and against the Rails contract spec on develop. The Event Catalogue and Contacts' Portal paths, schemas, responses, cards and nav links all match.

There's one gap. The Event Format EventFormatInput and EventFormatDetail that were already on main describe the appointment settings, but leave out the ten settings CP-8843 added: Self Check-in, guest fields and booking form, assigning guests to workers, shortened address, and Event Roles. The API on develop accepts and returns all of them.

#201 adds just those fields to the two schemas and the create and edit cards. It keeps the appointment settings, and it isn't a reopening.


Generated by Claude Code

This branch was successfully deployed

1 active deployment
Preview — 397b78b8 Deployed Oct 22, 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