Skip to content

Commit

Permalink
Document exclude system tags param
Browse files Browse the repository at this point in the history
On our tags endpoint there is an undocumented param
to exclude tags from the results.
Lets make it public.
  • Loading branch information
forelabs committed Sep 2, 2024
1 parent cf45164 commit 88bd060
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 22 deletions.
9 changes: 9 additions & 0 deletions doc/compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -20404,6 +20404,15 @@
{
"$ref": "#/components/parameters/per_page"
},
{
"description": "excludes tags generated by the system, e.g. job, upload or figma tags",
"name": "exclude_system_tags",
"example": true,
"in": "query",
"schema": {
"type": "boolean"
}
},
{
"description": "specify the branch to use",
"example": "my-feature-branch",
Expand Down
49 changes: 27 additions & 22 deletions paths/tags/index.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
---
summary: List tags
description: List all tags for the given project.
operationId: tags/list
tags:
- Tags
- Tags
parameters:
- "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
- "$ref": "../../parameters.yaml#/project_id"
- "$ref": "../../parameters.yaml#/page"
- "$ref": "../../parameters.yaml#/per_page"
- description: specify the branch to use
example: my-feature-branch
name: branch
in: query
schema:
type: string
- "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
- "$ref": "../../parameters.yaml#/project_id"
- "$ref": "../../parameters.yaml#/page"
- "$ref": "../../parameters.yaml#/per_page"
- description: excludes tags generated by the system, e.g. job, upload or figma tags
name: exclude_system_tags
example: true
in: query
schema:
type: boolean
- description: specify the branch to use
example: my-feature-branch
name: branch
in: query
schema:
type: string
responses:
'200':
description: OK
Expand Down Expand Up @@ -42,14 +47,14 @@ responses:
'429':
"$ref": "../../responses.yaml#/429"
x-code-samples:
- lang: Curl
source: |-
curl "https://api.phrase.com/v2/projects/:project_id/tags?branch=my-feature-branch" \
-u USERNAME_OR_ACCESS_TOKEN
- lang: CLI v2
source: |-
phrase tags list \
--project_id <project_id> \
--branch my-feature-branch \
--access_token <token>
- lang: Curl
source: |-
curl "https://api.phrase.com/v2/projects/:project_id/tags?branch=my-feature-branch" \
-u USERNAME_OR_ACCESS_TOKEN
- lang: CLI v2
source: |-
phrase tags list \
--project_id <project_id> \
--branch my-feature-branch \
--access_token <token>
x-cli-version: '2.5'

0 comments on commit 88bd060

Please sign in to comment.