From a559705428ca7058bf10757920acbecd6741848d Mon Sep 17 00:00:00 2001 From: Anthony Chang Date: Thu, 13 Jul 2023 14:45:54 +0200 Subject: [PATCH] update compiled json --- doc/compiled.json | 198 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 137 insertions(+), 61 deletions(-) diff --git a/doc/compiled.json b/doc/compiled.json index 1a228361b..73d7d3d16 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -698,6 +698,69 @@ } } }, + "custom_metadata_label": { + "type": "object", + "title": "custom_metadata_label", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "data_type": { + "type": "string", + "enum": [ + "boolean", + "date", + "link", + "multi_select", + "number", + "single_select", + "text" + ] + }, + "user": { + "$ref": "#/components/schemas/user_preview" + }, + "account": { + "$ref": "#/components/schemas/account" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } + }, + "example": { + "id": "abcd1234cdef1234abcd1234cdef1234", + "name": "Character Age", + "description": "Age of character in seconds", + "data_type": "Text value", + "user": { + "id": "abcd1234cdef1234abcd1234cdef1234", + "username": "joe.doe", + "name": "Joe Doe" + }, + "account": { + "id": "abcd1234", + "name": "Company Account", + "slug": "company_account", + "company": "My Awesome Company", + "created_at": "2015-01-28T09:52:53Z", + "updated_at": "2015-01-28T09:52:53Z", + "company_logo_url": "http://assets.example.com/company_logo.png" + }, + "created_at": "2015-01-28T09:52:53Z", + "updated_at": "2015-01-28T09:52:53Z" + } + }, "key_preview": { "type": "object", "title": "key_preview", @@ -6058,67 +6121,7 @@ "schema": { "type": "array", "items": { - "type": "object", - "title": "custom_metadata_label", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "data_type": { - "type": "string", - "enum": [ - "boolean", - "date", - "link", - "multi_select", - "number", - "single_select", - "text" - ] - }, - "user": { - "$ref": "#/components/schemas/user_preview" - }, - "account": { - "$ref": "#/components/schemas/account" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - } - }, - "example": { - "id": "abcd1234cdef1234abcd1234cdef1234", - "name": "Character Age", - "description": "Age of character in seconds", - "data_type": "Text value", - "user": { - "id": "abcd1234cdef1234abcd1234cdef1234", - "username": "joe.doe", - "name": "Joe Doe" - }, - "account": { - "id": "abcd1234", - "name": "Company Account", - "slug": "company_account", - "company": "My Awesome Company", - "created_at": "2015-01-28T09:52:53Z", - "updated_at": "2015-01-28T09:52:53Z", - "company_logo_url": "http://assets.example.com/company_logo.png" - }, - "created_at": "2015-01-28T09:52:53Z", - "updated_at": "2015-01-28T09:52:53Z" - } + "$ref": "#/components/schemas/custom_metadata_label" } } } @@ -6161,6 +6164,79 @@ "x-cli-version": "2.9" } }, + "/accounts/{account_id}/custom_metadata/labels/{id}": { + "get": { + "summary": "Get a single label", + "description": "Get details of a single custom metadata label.", + "operationId": "custom_metadata_label/show", + "tags": [ + "Custom Metadata" + ], + "parameters": [ + { + "$ref": "#/components/parameters/X-PhraseApp-OTP" + }, + { + "$ref": "#/components/parameters/account_id" + }, + { + "$ref": "#/components/parameters/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": "#/components/schemas/custom_metadata_label" + } + } + }, + "headers": { + "X-Rate-Limit-Limit": { + "$ref": "#/components/headers/X-Rate-Limit-Limit" + }, + "X-Rate-Limit-Remaining": { + "$ref": "#/components/headers/X-Rate-Limit-Remaining" + }, + "X-Rate-Limit-Reset": { + "$ref": "#/components/headers/X-Rate-Limit-Reset" + } + } + }, + "400": { + "$ref": "#/components/responses/400" + }, + "404": { + "$ref": "#/components/responses/404" + }, + "429": { + "$ref": "#/components/responses/429" + } + }, + "x-code-samples": [ + { + "lang": "Curl", + "source": "curl \"https://api.phrase.com/v2/accounts/:account_id/custom_metadata/labels/:id?branch=my-feature-branch\" \\\n -u USERNAME_OR_ACCESS_TOKEN" + }, + { + "lang": "CLI v2", + "source": "phrase custom_metadata_labels show \\\n--account_id \\\n--id \\\n--branch my-feature-branch \\\n--access_token " + } + ], + "x-cli-version": "2.9" + } + }, "/accounts/{account_id}/invitations": { "get": { "summary": "List invitations",