Skip to content

feat(API): add pre_translations resource to API - #1224

Open
Phrase (phrase-bot) wants to merge 2 commits into
mainfrom
openapi-sync/strings-app-pr-18257
Open

feat(API): add pre_translations resource to API#1224
Phrase (phrase-bot) wants to merge 2 commits into
mainfrom
openapi-sync/strings-app-pr-18257

Conversation

@phrase-bot

@phrase-bot Phrase (phrase-bot) commented Jul 24, 2026

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#18257.

What changed in the API

  • GET /api/v2/projects/{project_id}/pre_translations — new list endpoint returning all pre-translation jobs scoped to a project, paginated (Link header), requires read scope and autopilot plan feature.
  • POST /api/v2/projects/{project_id}/pre_translations — new create endpoint that enqueues a pre-translation job for a polymorphic target (locale, job, translation_key, or upload); responds 202 Accepted, requires write scope and autopilot plan feature.
  • GET /api/v2/projects/{project_id}/pre_translations/{id} — new show endpoint returning a single pre-translation job by its code, requires read scope and autopilot plan feature.

Notes for reviewers

  • operationId for show and create actions uses the singular form (pre_translation/show, pre_translation/create) consistent with the existing repo convention (e.g. automation/show, upload/create); the proposal used the plural form for all three but only the list action takes plural by convention.
  • No security override was added to the path files — security is inherited from the root definition in main.yaml, consistent with all other path files in the repo.
  • npx swagger-cli validate main.yaml passed cleanly after applying all changes.

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

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

API changelog (oasdiff)

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

3 changes: 0 error, 0 warning, 3 info
info	[endpoint-added] at doc/compiled.json
	in API GET /projects/{project_id}/pre_translations
		endpoint added

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

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

@theSoenke
Sönke Behrendt (theSoenke) force-pushed the openapi-sync/strings-app-pr-18257 branch from baf3171 to 73ec430 Compare July 24, 2026 12:35
@theSoenke
Sönke Behrendt (theSoenke) force-pushed the openapi-sync/strings-app-pr-18257 branch from 73ec430 to e6617ec Compare July 24, 2026 12:40
@theSoenke Sönke Behrendt (theSoenke) changed the title feat(API): add pre_translations resource to API v2 #STRINGS-2975 feat(API): add pre_translations resource to API Jul 24, 2026
@theSoenke
Sönke Behrendt (theSoenke) force-pushed the openapi-sync/strings-app-pr-18257 branch from 7acfec1 to 3293c17 Compare July 24, 2026 13:26
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