Skip to content

feat(API): add project note endpoints and note field to project details - #1382

Merged
Sven Dunemann (forelabs) merged 2 commits into
mainfrom
openapi-sync/strings-app-pr-17768
Nov 24, 2026
Merged

Sven Dunemann (forelabs) merged 2 commits into
mainfrom
openapi-sync/strings-app-pr-17768

Conversation

@phrase-bot

Copy link
Copy Markdown
Collaborator

This PR was generated by the openapi-apply agent in response to a
/openapi-sync apply request on
Phrase-Engineering/strings-app#17768.

What changed in the API

  • New resource — GET /api/v2/projects/{project_id}/note returns the Markdown-formatted note for a project (gated behind the project_notes account feature).
  • New resource — PATCH /api/v2/projects/{project_id}/note creates or updates the project note; body is required.
  • New resource — DELETE /api/v2/projects/{project_id}/note deletes the project note (idempotent; succeeds even when no note exists).
  • Modified schema — GET /api/v2/projects/{project_id} response now conditionally includes a note object (via has_one :note, serializer: NoteSerializer, if: :include_note? in ProjectDetailSerializer) when the project_notes feature is enabled for the account.

Source

Notes for reviewers

  • The proposal's update.yaml fragment listed two request body content types (application/json and application/x-www-form-urlencoded). Only application/json was kept, per the repo convention of a single content type per operation.
  • Per-operation security: blocks from the proposal were dropped; authentication is declared globally in main.yaml.
  • The note property added to project_details.yaml uses a plain $ref (no sibling description:) to avoid the OpenAPI 3.0 $ref-silences-siblings issue.
  • The request body schema was given title: project_note/update/parameters to match the repo's model-naming convention.
  • Project Notes tag was added to main.yaml and to the Core Resources group in x-tagGroups.
  • The lint.sh step (openapi-generator-cli validate) reported No validation errors. A java: not found error appeared during the lint run — this is a pre-existing environment condition in CI (Java not installed), not a consequence of these changes. swagger-cli validate and make bundle both completed successfully.

Opened automatically by the openapi-apply agent. Review the spec changes
against the linked strings-app PR; the agent does not vouch for correctness
beyond "the YAML parsed and the documented layout was followed."

@github-actions

Copy link
Copy Markdown
Contributor

API changelog (oasdiff)

Doc-only edits (descriptions, examples) do not appear here.

6 changes: 0 error, 0 warning, 6 info
info	[response-optional-property-added] at doc/compiled.json
	in API POST /projects
		added the optional property `allOf[subschema #2: project_details]/note` to the response with the `201` status

info	[response-optional-property-added] at doc/compiled.json
	in API GET /projects/{id}
		added the optional property `allOf[subschema #2: project_details]/note` to the response with the `200` status

info	[response-optional-property-added] at doc/compiled.json
	in API PATCH /projects/{id}
		added the optional property `allOf[subschema #2: project_details]/note` to the response with the `200` status

info	[endpoint-added] at doc/compiled.json
	in API DELETE /projects/{project_id}/note
		endpoint added

info	[endpoint-added] at doc/compiled.json
	in API GET /projects/{project_id}/note
		endpoint added

info	[endpoint-added] at doc/compiled.json
	in API PATCH /projects/{project_id}/note
		endpoint added

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@forelabs Sven Dunemann (forelabs) changed the title feat(API): add project note endpoints and note field to project details #SCM-1573 feat(API): add project note endpoints and note field to project details Nov 24, 2026
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