Skip to content

Commit

Permalink
chore: update API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
crowdin-bot authored and andrii-bodnar committed Nov 25, 2024
1 parent b8087b1 commit f8d4d1b
Show file tree
Hide file tree
Showing 4 changed files with 234 additions and 14 deletions.
17 changes: 14 additions & 3 deletions src/assets/api/crowdin/file-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11913,6 +11913,12 @@ paths:
deprecated: true
schema:
type: integer
-
name: croql
in: query
description: "Filter strings by [CroQL](https://developer.crowdin.com/croql/)\n\n__Note:__ Can be used only with `orderBy`, `offset` and `limit` in same request"
schema:
type: string
-
$ref: '#/components/parameters/PaginationLimit'
-
Expand Down Expand Up @@ -29365,7 +29371,7 @@ components:
type: string
example: 'Not all videos are shown to users. See more'
identifier:
description: 'Defines unique string identifier'
description: "Defines unique string identifier. Max. length is 512 characters\n\n __Note:__ Required for YAML files and XLSX files with identifiers in their schema"
type: string
example: 6a1821e6499ebae94de4b880fd93b985
fileId:
Expand Down Expand Up @@ -29444,7 +29450,7 @@ components:
one: string
other: strings
identifier:
description: 'Defines unique string identifier'
description: "Defines unique string identifier. Max. length is 512 characters\n\n __Note:__ Required for YAML files and XLSX files with identifiers in their schema"
type: string
example: 6a1821e6499ebae94de4b880fd93b985
fileId:
Expand Down Expand Up @@ -29485,7 +29491,7 @@ components:
one: string
other: strings
identifier:
description: 'Defines unique string identifier'
description: 'Defines unique string identifier. Max. length is 512 characters'
type: string
example: 6a1821e6499ebae94de4b880fd93b985
branchId:
Expand Down Expand Up @@ -33774,6 +33780,11 @@ components:
type: boolean
default: false
example: false
addToTm:
description: 'Defines whether to add translation to TM'
type: boolean
default: true
example: false
type: object
CrowdinTranslationDirectoryBuildResource:
description: 'Translation Resource'
Expand Down
17 changes: 14 additions & 3 deletions src/assets/api/crowdin/string-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11265,6 +11265,12 @@ paths:
deprecated: true
schema:
type: integer
-
name: croql
in: query
description: "Filter strings by [CroQL](https://developer.crowdin.com/croql/)\n\n__Note:__ Can be used only with `orderBy`, `offset` and `limit` in same request"
schema:
type: string
-
$ref: '#/components/parameters/PaginationLimit'
-
Expand Down Expand Up @@ -27926,7 +27932,7 @@ components:
type: string
example: 'Not all videos are shown to users. See more'
identifier:
description: 'Defines unique string identifier'
description: "Defines unique string identifier. Max. length is 512 characters\n\n __Note:__ Required for YAML files and XLSX files with identifiers in their schema"
type: string
example: 6a1821e6499ebae94de4b880fd93b985
fileId:
Expand Down Expand Up @@ -28005,7 +28011,7 @@ components:
one: string
other: strings
identifier:
description: 'Defines unique string identifier'
description: "Defines unique string identifier. Max. length is 512 characters\n\n __Note:__ Required for YAML files and XLSX files with identifiers in their schema"
type: string
example: 6a1821e6499ebae94de4b880fd93b985
fileId:
Expand Down Expand Up @@ -28046,7 +28052,7 @@ components:
one: string
other: strings
identifier:
description: 'Defines unique string identifier'
description: 'Defines unique string identifier. Max. length is 512 characters'
type: string
example: 6a1821e6499ebae94de4b880fd93b985
branchId:
Expand Down Expand Up @@ -32302,6 +32308,11 @@ components:
type: boolean
default: false
example: false
addToTm:
description: 'Defines whether to add translation to TM'
type: boolean
default: true
example: false
type: object
CrowdinTranslationDirectoryBuildResource:
description: 'Translation Resource'
Expand Down
107 changes: 103 additions & 4 deletions src/assets/api/enterprise/file-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13935,6 +13935,12 @@ paths:
deprecated: true
schema:
type: integer
-
name: croql
in: query
description: "Filter strings by [CroQL](https://developer.crowdin.com/croql/)\n\n__Note:__ Can be used only with `orderBy`, `offset` and `limit` in same request"
schema:
type: string
-
$ref: '#/components/parameters/PaginationLimit'
-
Expand Down Expand Up @@ -16806,6 +16812,89 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/MethodNotAllowedExceptionResource'
'/projects/{projectId}/workflow-steps/{stepId}/strings':
get:
tags:
- Workflows
summary: 'List Strings on the Workflow Step'
operationId: api.projects.workflow-steps.strings.getMany
parameters:
-
$ref: '#/components/parameters/ProjectId'
-
$ref: '#/components/parameters/StepId'
-
$ref: '#/components/parameters/LanguageIds'
-
name: orderBy
in: query
description: 'Read more about [sorting rules](#section/Introduction/Sorting)'
schema:
type: string
default: id
enum:
- id
- text
- identifier
- context
- createdAt
- updatedAt
example: 'createdAt desc,text,identifier'
-
name: status
in: query
description: 'String status on the workflow step'
schema:
type: string
enum:
- todo
- done
- pending
- incomplete
- need_review
-
$ref: '#/components/parameters/PaginationLimit'
-
$ref: '#/components/parameters/PaginationOffset'
responses:
'200':
description: 'Project strings list'
content:
application/json:
schema:
$ref: '#/components/schemas/EnterpriseFileBasedStringCollectionResource'
x-doc-sections:
- file-based
'400':
description: 'Invalid Request Parameters'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorCollectionResource'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/AuthenticateError'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenExceptionResource'
'404':
description: 'Project or workflow step with specified id was not found'
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundExceptionResource'
'405':
description: 'Method Not Allowed'
content:
application/json:
schema:
$ref: '#/components/schemas/MethodNotAllowedExceptionResource'
/workflow-templates:
get:
tags:
Expand Down Expand Up @@ -32613,7 +32702,7 @@ components:
type: string
example: 'Not all videos are shown to users. See more'
identifier:
description: 'Defines unique string identifier'
description: "Defines unique string identifier. Max. length is 512 characters\n\n __Note:__ Required for YAML files and XLSX files with identifiers in their schema"
type: string
example: 6a1821e6499ebae94de4b880fd93b985
fileId:
Expand Down Expand Up @@ -32657,7 +32746,7 @@ components:
type: string
example: 'Not all videos are shown to users. See more'
identifier:
description: 'Defines unique string identifier'
description: 'Defines unique string identifier. Max. length is 512 characters'
type: string
example: 6a1821e6499ebae94de4b880fd93b985
branchId:
Expand Down Expand Up @@ -32702,7 +32791,7 @@ components:
one: string
other: strings
identifier:
description: 'Defines unique string identifier'
description: "Defines unique string identifier. Max. length is 512 characters\n\n __Note:__ Required for YAML files and XLSX files with identifiers in their schema"
type: string
example: 6a1821e6499ebae94de4b880fd93b985
fileId:
Expand Down Expand Up @@ -32743,7 +32832,7 @@ components:
one: string
other: strings
identifier:
description: 'Defines unique string identifier'
description: 'Defines unique string identifier. Max. length is 512 characters'
type: string
example: 6a1821e6499ebae94de4b880fd93b985
branchId:
Expand Down Expand Up @@ -36993,6 +37082,11 @@ components:
type: boolean
default: false
example: false
addToTm:
description: 'Defines whether to add translation to TM'
type: boolean
default: true
example: false
markAddedTranslationsAsDone:
description: "Strings marked as done follow your project's workflow and appear on the corresponding step"
type: boolean
Expand Down Expand Up @@ -37085,6 +37179,11 @@ components:
type: boolean
default: false
example: false
addToTm:
description: 'Defines whether to add translation to TM'
type: boolean
default: true
example: false
type: object
EnterpriseTranslationDirectoryBuildResource:
description: 'Translation Resource'
Expand Down
Loading

0 comments on commit f8d4d1b

Please sign in to comment.