mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
## Summary This PR limits `perPage` param to 100 in `findComments` API. ### Checklist - [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: lcawl <lcawley@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
get:
|
|
summary: Retrieves all the user comments from a case.
|
|
operationId: findCaseComments
|
|
description: >
|
|
You must have `read` privileges for the **Cases** feature in the **Management**,
|
|
**Observability**, or **Security** section of the Kibana feature privileges,
|
|
depending on the owner of the cases with the comments you're seeking.
|
|
tags:
|
|
- cases
|
|
parameters:
|
|
- $ref: '../components/parameters/case_id.yaml'
|
|
- $ref: '../components/parameters/page_index.yaml'
|
|
- name: perPage
|
|
in: query
|
|
description: The number of items to return. Limited to 100 items.
|
|
required: false
|
|
schema:
|
|
type: integer
|
|
default: 20
|
|
maximum: 100
|
|
- $ref: '../components/parameters/sort_order.yaml'
|
|
- $ref: '../components/parameters/space_id.yaml'
|
|
responses:
|
|
'200':
|
|
description: Indicates a successful call.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../components/schemas/case_response_properties.yaml'
|
|
'401':
|
|
description: Authorization information is missing or invalid.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../components/schemas/4xx_response.yaml'
|
|
servers:
|
|
- url: https://localhost:5601
|
|
|
|
servers:
|
|
- url: https://localhost:5601
|