-
Notifications
You must be signed in to change notification settings - Fork 7
feat(API): Add only_content_updates on translations versions #977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,13 @@ parameters: | |
| in: query | ||
| schema: | ||
| type: string | ||
| - description: Indicates whether only content updates should be returned | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should probably specify the default here
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jablan I tried to keep it consistent to other places and the ones I found did not mention the default. I would also say default can be assumed to be false if not mentioned elsewise, wdyt?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jablan I added it to the schema below |
||
| example: true | ||
| name: only_content_updates | ||
| in: query | ||
| schema: | ||
| type: boolean | ||
| default: false | ||
| responses: | ||
| '200': | ||
| description: OK | ||
|
|
@@ -24,7 +31,7 @@ responses: | |
| schema: | ||
| type: array | ||
| items: | ||
| "$ref": "../../schemas/translation_version.yaml#/translation_version" | ||
| "$ref": "../../schemas/translation_version_with_user.yaml#/translation_version_with_user" | ||
| headers: | ||
| X-Rate-Limit-Limit: | ||
| "$ref": "../../headers.yaml#/X-Rate-Limit-Limit" | ||
|
|
@@ -45,13 +52,14 @@ responses: | |
| x-code-samples: | ||
| - lang: Curl | ||
| source: |- | ||
| curl "https://api.phrase.com/v2/projects/:project_id/translations/:translation_id/versions?branch=my-feature-branch" \ | ||
| curl "https://api.phrase.com/v2/projects/:project_id/translations/:translation_id/versions?branch=my-feature-branch&only_content_updates=true" \ | ||
| -u USERNAME_OR_ACCESS_TOKEN | ||
| - lang: CLI v2 | ||
| source: |- | ||
| phrase versions list \ | ||
| --project_id <project_id> \ | ||
| --translation_id <translation_id> \ | ||
| --branch my-feature-branch \ | ||
| --only_content_updates true \ | ||
| --access_token <token> | ||
| x-cli-version: '2.5' | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you remove this file from the PR?