Skip to content

Commit

Permalink
docs: Mention passing name instead of locale ID (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
jablan authored Sep 6, 2023
1 parent 3e663d9 commit 80c87aa
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 8 deletions.
17 changes: 13 additions & 4 deletions doc/compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -4164,6 +4164,15 @@
"type": "string"
}
},
"locale_id_as_id": {
"in": "path",
"name": "id",
"description": "Locale ID or locale name",
"required": true,
"schema": {
"type": "string"
}
},
"gitlab_sync_id": {
"in": "path",
"name": "gitlab_sync_id",
Expand Down Expand Up @@ -6544,7 +6553,7 @@
"$ref": "#/components/parameters/project_id"
},
{
"$ref": "#/components/parameters/id"
"$ref": "#/components/parameters/locale_id_as_id"
},
{
"description": "specify the branch to use",
Expand Down Expand Up @@ -6615,7 +6624,7 @@
"$ref": "#/components/parameters/project_id"
},
{
"$ref": "#/components/parameters/id"
"$ref": "#/components/parameters/locale_id_as_id"
}
],
"responses": {
Expand Down Expand Up @@ -6745,7 +6754,7 @@
"$ref": "#/components/parameters/project_id"
},
{
"$ref": "#/components/parameters/id"
"$ref": "#/components/parameters/locale_id_as_id"
},
{
"description": "specify the branch to use",
Expand Down Expand Up @@ -6806,7 +6815,7 @@
"$ref": "#/components/parameters/project_id"
},
{
"$ref": "#/components/parameters/id"
"$ref": "#/components/parameters/locale_id_as_id"
},
{
"description": "specify the branch to use",
Expand Down
7 changes: 7 additions & 0 deletions parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ locale_id:
required: true
schema:
type: string
locale_id_as_id:
in: path
name: id
description: Locale ID or locale name
required: true
schema:
type: string
gitlab_sync_id:
in: path
name: gitlab_sync_id
Expand Down
2 changes: 1 addition & 1 deletion paths/locales/destroy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tags:
parameters:
- "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
- "$ref": "../../parameters.yaml#/project_id"
- "$ref": "../../parameters.yaml#/id"
- "$ref": "../../parameters.yaml#/locale_id_as_id"
- description: specify the branch to use
example: my-feature-branch
name: branch
Expand Down
2 changes: 1 addition & 1 deletion paths/locales/download.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ parameters:
- "$ref": "../../parameters.yaml#/If-Modified-Since"
- "$ref": "../../parameters.yaml#/If-None-Match"
- "$ref": "../../parameters.yaml#/project_id"
- "$ref": "../../parameters.yaml#/id"
- "$ref": "../../parameters.yaml#/locale_id_as_id"
- description: specify the branch to use
example: my-feature-branch
name: branch
Expand Down
2 changes: 1 addition & 1 deletion paths/locales/show.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tags:
parameters:
- "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
- "$ref": "../../parameters.yaml#/project_id"
- "$ref": "../../parameters.yaml#/id"
- "$ref": "../../parameters.yaml#/locale_id_as_id"
- description: specify the branch to use
example: my-feature-branch
name: branch
Expand Down
2 changes: 1 addition & 1 deletion paths/locales/update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tags:
parameters:
- "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
- "$ref": "../../parameters.yaml#/project_id"
- "$ref": "../../parameters.yaml#/id"
- "$ref": "../../parameters.yaml#/locale_id_as_id"
responses:
'200':
description: OK
Expand Down

0 comments on commit 80c87aa

Please sign in to comment.