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

     1  ---
     2  summary: List terms
     3  description: 'List all terms in term bases (previously: glossary) that the current user has access to.'
     4  operationId: glossary_terms/list
     5  tags:
     6  - Glossary Terms
     7  parameters:
     8  - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
     9  - "$ref": "../../parameters.yaml#/account_id"
    10  - "$ref": "../../parameters.yaml#/glossary_id"
    11  - "$ref": "../../parameters.yaml#/page"
    12  - "$ref": "../../parameters.yaml#/per_page"
    13  responses:
    14    '200':
    15      description: OK
    16      content:
    17        application/json:
    18          schema:
    19            type: array
    20            items:
    21              "$ref": "../../schemas/glossary_term.yaml#/glossary_term"
    22      headers:
    23        X-Rate-Limit-Limit:
    24          "$ref": "../../headers.yaml#/X-Rate-Limit-Limit"
    25        X-Rate-Limit-Remaining:
    26          "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining"
    27        X-Rate-Limit-Reset:
    28          "$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
    29        Link:
    30          "$ref": "../../headers.yaml#/Link"
    31        Pagination:
    32          "$ref": "../../headers.yaml#/Pagination"
    33    '400':
    34      "$ref": "../../responses.yaml#/400"
    35    '404':
    36      "$ref": "../../responses.yaml#/404"
    37    '429':
    38      "$ref": "../../responses.yaml#/429"
    39  x-code-samples:
    40  - lang: Curl
    41    source: |-
    42      curl "https://api.phrase.com/v2/accounts/:account_id/glossaries/:glossary_id/terms" \
    43        -u USERNAME_OR_ACCESS_TOKEN
    44  - lang: CLI v2
    45    source: |-
    46      phrase glossary_terms list \
    47      --account_id <account_id> \
    48      --glossary_id <glossary_id> \
    49      --access_token <token>
    50  x-cli-version: '2.5'