Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,348 changes: 2,071 additions & 277 deletions docs/index.html

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions openapi/components/schemas/IncrementalRequest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
type: object
required:
- current
- previous
properties:
current:
required:
- segments
type: object
properties:
segments:
type: array
items:
$ref: ./SegmentData.yaml
previous:
required:
- segments
type: object
properties:
segments:
type: array
items:
$ref: ./SegmentData.yaml
87 changes: 65 additions & 22 deletions openapi/paths/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,76 @@ post:
- Job
summary: Create a translation job.
description: >
Trigger a new translation that will be processed in all languages set up on
your project.
Trigger a new translation that will be processed in all languages set up on your project.
operationId: createJob
requestBody:
content:
application/json:
schema:
$ref: ../components/schemas/JobRequest.yaml
example:
segments:
- id: product#1#name
value: ACME DIY Tornado Kit
localeCode: en-US
- id: product#1#description
value: >-
Easily create your own tornadoes, anywhere, with the ACME Do
It Yourself Tornado kit
localeCode: en-US
- id: product#2#name
value: ACME Birdseed
localeCode: en-US
- id: product#2#description
value: >-
Comes in all shapes, sizes, and flavors, providing lots of
opportunites to keep your favorite flying friends happy.
Placing ACME Birdseed on a railroad crossing is NOT advised
localeCode: en-US
anyOf:
- $ref: ../components/schemas/SynchronizationRequest.yaml
- $ref: ../components/schemas/IncrementalRequest.yaml
examples:
Synchronization:
value:
segments:
- id: product#1#name
value: ACME DIY Tornado Kit
localeCode: en-US
- id: product#1#description
value: >-
Easily create your own tornadoes, anywhere, with the ACME Do
It Yourself Tornado kit
localeCode: en-US
- id: product#2#name
value: ACME Birdseed
localeCode: en-US
- id: product#2#description
value: >-
Comes in all shapes, sizes, and flavors, providing lots of
opportunites to keep your favorite flying friends happy.
Placing ACME Birdseed on a railroad crossing is NOT advised
localeCode: en-US
Incremental:
value:
current:
segments:
- id: product#1#name
value: (Current) ACME DIY Tornado Kit
localeCode: en-US
- id: product#1#description
value: >-
(Current) Easily create your own tornadoes, anywhere, with the ACME Do
It Yourself Tornado kit
localeCode: en-US
- id: product#2#name
value: (Current) ACME Birdseed
localeCode: en-US
- id: product#2#description
value: >-
(Current) Comes in all shapes, sizes, and flavors, providing lots of
opportunites to keep your favorite flying friends happy.
Placing ACME Birdseed on a railroad crossing is NOT advised
localeCode: en-US
previous:
segments:
- id: product#1#name
value: (Previous) ACME DIY Tornado Kit
localeCode: en-US
- id: product#1#description
value: >-
(Previous) Easily create your own tornadoes, anywhere, with the ACME Do
It Yourself Tornado kit
localeCode: en-US
- id: product#2#name
value: (Previous) ACME Birdseed
localeCode: en-US
- id: product#2#description
value: >-
(Previous) Comes in all shapes, sizes, and flavors, providing lots of
opportunites to keep your favorite flying friends happy.
Placing ACME Birdseed on a railroad crossing is NOT advised
localeCode: en-US
required: true
responses:
'201':
Expand Down