Skip to content

Commit

Permalink
[DOCS] Sort query parameter order; generate preview docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Jun 20, 2023
1 parent f8ecc81 commit b306423
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 40 deletions.
4 changes: 3 additions & 1 deletion docs/api-generated/cases/case-apis-passthru.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,9 @@ Any modifications made to this file will be overwritten.
<div class="field-items">
<div class="param">assignees (optional)</div>
<div class="param-desc"><span class="param-type">Query Parameter</span> &mdash; Filters the returned cases by assignees. Valid values are <code>none</code> or unique identifiers for the user profiles. These identifiers can be found by using the suggest user profile API. default: null </div><div class="param">defaultSearchOperator (optional)</div>
<div class="param-desc"><span class="param-type">Query Parameter</span> &mdash; Filters the returned cases by assignees. Valid values are <code>none</code> or unique identifiers for the user profiles. These identifiers can be found by using the suggest user profile API. default: null </div><div class="param">category (optional)</div>
<div class="param-desc"><span class="param-type">Query Parameter</span> &mdash; Filters the returned cases by category. Limited to 100 categories. default: null </div><div class="param">defaultSearchOperator (optional)</div>
<div class="param-desc"><span class="param-type">Query Parameter</span> &mdash; The default operator to use for the simple_query_string. default: OR </div><div class="param">from (optional)</div>
Expand Down
38 changes: 19 additions & 19 deletions x-pack/plugins/cases/docs/openapi/bundled.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,25 @@
]
}
},
{
"name": "category",
"in": "query",
"description": "Filters the returned cases by category. Limited to 100 categories.",
"schema": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"example": "my-category"
},
{
"name": "defaultSearchOperator",
"in": "query",
Expand Down Expand Up @@ -362,25 +381,6 @@
},
"example": "tag-1"
},
{
"name": "category",
"in": "query",
"description": "Filters the returned cases by category. Limited to 100 categories.",
"schema": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"example": "my-category"
},
{
"name": "to",
"in": "query",
Expand Down
20 changes: 10 additions & 10 deletions x-pack/plugins/cases/docs/openapi/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,16 @@ paths:
- type: array
items:
type: string
- name: category
in: query
description: Filters the returned cases by category. Limited to 100 categories.
schema:
oneOf:
- type: string
- type: array
items:
type: string
example: my-category
- name: defaultSearchOperator
in: query
description: The default operator to use for the simple_query_string.
Expand Down Expand Up @@ -213,16 +223,6 @@ paths:
items:
type: string
example: tag-1
- name: category
in: query
description: Filters the returned cases by category. Limited to 100 categories.
schema:
oneOf:
- type: string
- type: array
items:
type: string
example: my-category
- name: to
in: query
description: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ get:
- type: array
items:
type: string
- name: category
in: query
description: Filters the returned cases by category. Limited to 100 categories.
schema:
oneOf:
- type: string
- type: array
items:
type: string
example: my-category
- name: defaultSearchOperator
in: query
description: The default operator to use for the simple_query_string.
Expand Down Expand Up @@ -96,16 +106,6 @@ get:
items:
type: string
example: tag-1
- name: category
in: query
description: Filters the returned cases by category. Limited to 100 categories.
schema:
oneOf:
- type: string
- type: array
items:
type: string
example: my-category
- name: to
in: query
description: >
Expand Down

0 comments on commit b306423

Please sign in to comment.