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

     1  ---
     2  summary: List formats
     3  description: Get a handy list of all localization file formats supported in Phrase.
     4  operationId: formats/list
     5  tags:
     6  - Formats
     7  parameters:
     8  - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
     9  responses:
    10    '200':
    11      description: OK
    12      content:
    13        application/json:
    14          schema:
    15            type: array
    16            items:
    17              "$ref": "../../schemas/format.yaml#/format"
    18      headers:
    19        X-Rate-Limit-Limit:
    20          "$ref": "../../headers.yaml#/X-Rate-Limit-Limit"
    21        X-Rate-Limit-Remaining:
    22          "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining"
    23        X-Rate-Limit-Reset:
    24          "$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
    25        Link:
    26          "$ref": "../../headers.yaml#/Link"
    27        Pagination:
    28          "$ref": "../../headers.yaml#/Pagination"
    29    '400':
    30      "$ref": "../../responses.yaml#/400"
    31    '404':
    32      "$ref": "../../responses.yaml#/404"
    33    '429':
    34      "$ref": "../../responses.yaml#/429"
    35  x-code-samples:
    36  - lang: Curl
    37    source: curl "https://api.phrase.com/v2/formats"
    38  - lang: CLI v2
    39    source: |-
    40      phrase formats list \
    41      --access_token <token>
    42  x-cli-version: '2.5'