Skip to content

Commit

Permalink
add paths for custom metadata show
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshchang committed Jul 13, 2023
1 parent b0c7ca9 commit 8ddad40
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
3 changes: 3 additions & 0 deletions paths.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
"/accounts/{account_id}/custom_metadata/labels":
get:
"$ref": "./paths/custom_metadata_labels/index.yaml"
"/accounts/{account_id}/custom_metadata_labels/{id}":
get:
"$ref": "./paths/custom_metadata_labels/show.yaml"
"/accounts/{account_id}/invitations":
get:
"$ref": "./paths/invitations/index.yaml"
Expand Down
49 changes: 49 additions & 0 deletions paths/custom_metadata_labels/show.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
summary: Get a single custom_metadata_label
description: Get details of a single custom_metadata_label.
operationId: custom_metadata_label/show
tags:
- CustomMetadataLabels
parameters:
- "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
- "$ref": "../../parameters.yaml#/account_id"
- "$ref": "../../parameters.yaml#/id"
- description: specify the branch to use
example: my-feature-branch
name: branch
in: query
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
"$ref": "../../schemas/custom_metadata_label.yaml#/custom_metadata_label"
headers:
X-Rate-Limit-Limit:
"$ref": "../../headers.yaml#/X-Rate-Limit-Limit"
X-Rate-Limit-Remaining:
"$ref": "../../headers.yaml#/X-Rate-Limit-Remaining"
X-Rate-Limit-Reset:
"$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
'400':
"$ref": "../../responses.yaml#/400"
'404':
"$ref": "../../responses.yaml#/404"
'429':
"$ref": "../../responses.yaml#/429"
x-code-samples:
- lang: Curl
source: |-
curl "https://api.phrase.com/v2/accounts/:account_id/custom_metadata_labels/:id?branch=my-feature-branch" \
-u USERNAME_OR_ACCESS_TOKEN
- lang: CLI v2
source: |-
phrase custom_metadata_labels show \
--account_id <account_id> \
--id <id> \
--branch my-feature-branch \
--access_token <token>
x-cli-version: '2.5'

0 comments on commit 8ddad40

Please sign in to comment.