github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/paths/versions/show.yaml (about)

     1  ---
     2  summary: Get a single version
     3  description: Get details on a single version.
     4  operationId: version/show
     5  tags:
     6  - Versions / History
     7  parameters:
     8  - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
     9  - "$ref": "../../parameters.yaml#/project_id"
    10  - "$ref": "../../parameters.yaml#/translation_id"
    11  - "$ref": "../../parameters.yaml#/id"
    12  - description: specify the branch to use
    13    example: my-feature-branch
    14    name: branch
    15    in: query
    16    schema:
    17      type: string
    18  responses:
    19    '200':
    20      description: OK
    21      content:
    22        application/json:
    23          schema:
    24            "$ref": "../../schemas/translation_version_with_user.yaml#/translation_version_with_user"
    25      headers:
    26        X-Rate-Limit-Limit:
    27          "$ref": "../../headers.yaml#/X-Rate-Limit-Limit"
    28        X-Rate-Limit-Remaining:
    29          "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining"
    30        X-Rate-Limit-Reset:
    31          "$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
    32    '400':
    33      "$ref": "../../responses.yaml#/400"
    34    '404':
    35      "$ref": "../../responses.yaml#/404"
    36    '429':
    37      "$ref": "../../responses.yaml#/429"
    38  x-code-samples:
    39  - lang: Curl
    40    source: |-
    41      curl "https://api.phrase.com/v2/projects/:project_id/translations/:translation_id/versions/:id?branch=my-feature-branch" \
    42        -u USERNAME_OR_ACCESS_TOKEN
    43  - lang: CLI v2
    44    source: |-
    45      phrase versions show \
    46      --project_id <project_id> \
    47      --translation_id <translation_id> \
    48      --id <id> \
    49      --branch my-feature-branch \
    50      --access_token <token>
    51  x-cli-version: '2.5'