Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
149 changes: 145 additions & 4 deletions doc/compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -10378,6 +10378,44 @@
"schema": {
"type": "string"
}
},
{
"description": "Search query for comment messages",
"example": "Some comment content",
"name": "query",
"in": "query",
"schema": {
"type": "string"
}
},
{
"description": "Search comments by their assigned locales",
"example": [
"someId"
],
"name": "locale_ids",
"in": "query",
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
},
{
"description": "Specify the filter for the comments",
"name": "filters",
"in": "query",
"schema": {
"type": "array",
"example": [
"read",
"unread"
],
"items": {
"type": "string"
}
}
}
],
"responses": {
Expand Down Expand Up @@ -10421,13 +10459,58 @@
"x-code-samples": [
{
"lang": "Curl",
"source": "curl \"https://api.phrase.com/v2/projects/:project_id/keys/:key_id/comments?branch=my-feature-branch\" \\\n -u USERNAME_OR_ACCESS_TOKEN"
"source": "curl \"https://api.phrase.com/v2/projects/:project_id/keys/:key_id/comments?branch=my-feature-branch&filters=unread&query=something&locale_ids=someId\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X GET \\\n -H 'Content-Type: application/json'"
},
{
"lang": "CLI v2",
"source": "phrase comments list \\\n--project_id <project_id> \\\n--key_id <key_id> \\\n--branch my-feature-branch \\\n--access_token <token>"
"source": "phrase comments list \\\n--project_id <project_id> \\\n--key_id <key_id> \\\n--branch \"my-feature-branch\" \\\n--filters unread \\\n--query \"Some comment content\" \\\n--locale_ids someId \\\n--access_token <token>"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "comments/list/parameters",
"properties": {
"branch": {
"description": "Specify the branch to use",
"type": "string",
"example": "my-feature-branch"
},
"query": {
"description": "Search query for comment messages",
"type": "string",
"example": "Some comment content"
},
"locale_ids": {
"description": "Search comments by their assigned locales",
"type": "array",
"items": {
"type": "string"
},
"example": [
"someId",
"otherId"
]
},
"filters": {
"description": "Specify filters to find comments by",
"type": "array",
"items": {
"type": "string"
},
"example": [
"read",
"unread"
]
}
}
}
}
}
},
"x-cli-version": "2.5"
},
"post": {
Expand Down Expand Up @@ -11292,6 +11375,30 @@
"schema": {
"type": "string"
}
},
{
"description": "Search query for comment messages",
"example": "Some comment content",
"name": "query",
"in": "query",
"schema": {
"type": "string"
}
},
{
"description": "Specify the filter for the comments",
"name": "filters",
"in": "query",
"schema": {
"type": "array",
"example": [
"read",
"unread"
],
"items": {
"type": "string"
}
}
}
],
"responses": {
Expand Down Expand Up @@ -11338,13 +11445,47 @@
"x-code-samples": [
{
"lang": "Curl",
"source": "curl \"https://api.phrase.com/v2/projects/:project_id/keys/:key_id/comments/:comment_id/replies\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X GET \\\n -d '{\"branch\":\"my-feature-branch\"}' \\\n -H 'Content-Type: application/json'"
"source": "curl \"https://api.phrase.com/v2/projects/:project_id/keys/:key_id/comments/:comment_id/replies?branch=my-feature-branch&filters=unread&query=something\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X GET \\\n -H 'Content-Type: application/json'"
},
{
"lang": "CLI v2",
"source": "phrase replies list \\\n--project_id <project_id> \\\n--key_id <key_id> \\\n--comment_id <comment_id> \\\n--data '{\"branch\":\"my-feature-branch\"]}' \\\n--access_token <token>"
"source": "phrase replies list \\\n--project_id <project_id> \\\n--key_id <key_id> \\\n--comment_id <comment_id> \\\n--branch \"my-feature-branch\" \\\n--filters unread \\\n--query \"Some comment content\" \\\n--access_token <token>"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "replies/list/parameters",
"properties": {
"branch": {
"description": "Specify the branch to use",
"type": "string",
"example": "my-feature-branch"
},
"query": {
"description": "Search query for comment messages",
"type": "string",
"example": "Some comment content"
},
"filters": {
"description": "Specify filters to find comments by",
"type": "array",
"items": {
"type": "string"
},
"example": [
"read",
"unread"
]
}
}
}
}
}
},
"x-cli-version": "2.10"
},
"post": {
Expand Down
43 changes: 40 additions & 3 deletions paths/comment_replies/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@ parameters:
in: query
schema:
type: string
- description: Search query for comment messages
example: Some comment content
name: query
in: query
schema:
type: string
- description: Specify the filter for the comments
name: filters
in: query
schema:
type: array
example: [read, unread]
items:
type: string
responses:
'200':
description: OK
Expand Down Expand Up @@ -46,17 +60,40 @@ responses:
x-code-samples:
- lang: Curl
source: |-
curl "https://api.phrase.com/v2/projects/:project_id/keys/:key_id/comments/:comment_id/replies" \
curl "https://api.phrase.com/v2/projects/:project_id/keys/:key_id/comments/:comment_id/replies?branch=my-feature-branch&filters=unread&query=something" \
-u USERNAME_OR_ACCESS_TOKEN \
-X GET \
-d '{"branch":"my-feature-branch"}' \
-H 'Content-Type: application/json'
- lang: CLI v2
source: |-
phrase replies list \
--project_id <project_id> \
--key_id <key_id> \
--comment_id <comment_id> \
--data '{"branch":"my-feature-branch"]}' \
--branch "my-feature-branch" \
--filters unread \
--query "Some comment content" \
--access_token <token>
requestBody:
required: true
content:
application/json:
schema:
type: object
title: replies/list/parameters
properties:
branch:
description: Specify the branch to use
type: string
example: my-feature-branch
query:
description: Search query for comment messages
type: string
example: Some comment content
filters:
description: Specify filters to find comments by
type: array
items:
type: string
example: [read, unread]
x-cli-version: '2.10'
61 changes: 58 additions & 3 deletions paths/comments/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,28 @@ parameters:
in: query
schema:
type: string
- description: Search query for comment messages
example: Some comment content
name: query
in: query
schema:
type: string
- description: Search comments by their assigned locales
example: [someId]
name: locale_ids
in: query
schema:
type: array
items:
type: string
- description: Specify the filter for the comments
name: filters
in: query
schema:
type: array
example: [read, unread]
items:
type: string
responses:
'200':
description: OK
Expand Down Expand Up @@ -43,13 +65,46 @@ responses:
x-code-samples:
- lang: Curl
source: |-
curl "https://api.phrase.com/v2/projects/:project_id/keys/:key_id/comments?branch=my-feature-branch" \
-u USERNAME_OR_ACCESS_TOKEN
curl "https://api.phrase.com/v2/projects/:project_id/keys/:key_id/comments?branch=my-feature-branch&filters=unread&query=something&locale_ids=someId" \
-u USERNAME_OR_ACCESS_TOKEN \
-X GET \
-H 'Content-Type: application/json'
- lang: CLI v2
source: |-
phrase comments list \
--project_id <project_id> \
--key_id <key_id> \
--branch my-feature-branch \
--branch "my-feature-branch" \
--filters unread \
--query "Some comment content" \
--locale_ids someId \
--access_token <token>
requestBody:
required: true
content:
application/json:
schema:
type: object
title: comments/list/parameters
properties:
branch:
description: Specify the branch to use
type: string
example: my-feature-branch
query:
description: Search query for comment messages
type: string
example: Some comment content
locale_ids:
description: Search comments by their assigned locales
type: array
items:
type: string
example: [someId, otherId]
filters:
description: Specify filters to find comments by
type: array
items:
type: string
example: [read, unread]
x-cli-version: '2.5'