2018-10-05 11:45:46 -04:00
|
|
|
--
|
|
|
|
:api: get-categories
|
|
|
|
:request: GetCategoriesRequest
|
|
|
|
:response: GetCategoriesResponse
|
|
|
|
--
|
|
|
|
[id="{upid}-{api}"]
|
2018-09-11 07:48:14 -04:00
|
|
|
=== Get Categories API
|
|
|
|
|
|
|
|
The Get Categories API retrieves one or more category results.
|
2018-10-05 11:45:46 -04:00
|
|
|
It accepts a +{request}+ object and responds
|
|
|
|
with a +{response}+ object.
|
2018-09-11 07:48:14 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-request"]
|
2018-09-11 07:48:14 -04:00
|
|
|
==== Get Categories Request
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
A +{request}+ object gets created with an existing non-null `jobId`.
|
2018-09-11 07:48:14 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
2018-09-11 07:48:14 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Constructing a new request referencing an existing `jobId`
|
|
|
|
|
|
|
|
==== Optional Arguments
|
|
|
|
The following arguments are optional:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-category-id]
|
2018-09-11 07:48:14 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> The id of the category to get. Otherwise it will return all categories.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-page]
|
2018-09-11 07:48:14 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> The page parameters `from` and `size`. `from` specifies the number of categories to skip.
|
|
|
|
`size` specifies the maximum number of categories to get. Defaults to `0` and `100` respectively.
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
include::../execution.asciidoc[]
|
2018-09-11 07:48:14 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-response"]
|
2018-09-11 07:48:14 -04:00
|
|
|
==== Get Categories Response
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
The returned +{response}+ contains the requested categories:
|
2018-09-11 07:48:14 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
2018-09-11 07:48:14 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> The count of categories that were matched
|
|
|
|
<2> The categories retrieved
|