|
4 | 4 | :response: GetCategoriesResponse
|
5 | 5 | --
|
6 | 6 | [id="{upid}-{api}"]
|
7 |
| -=== Get Categories API |
| 7 | +=== Get categories API |
8 | 8 |
|
9 |
| -The Get Categories API retrieves one or more category results. |
10 |
| -It accepts a +{request}+ object and responds |
11 |
| -with a +{response}+ object. |
| 9 | +Retrieves one or more category results. |
| 10 | +It accepts a +{request}+ object and responds with a +{response}+ object. |
12 | 11 |
|
13 | 12 | [id="{upid}-{api}-request"]
|
14 |
| -==== Get Categories Request |
| 13 | +==== Get categories request |
15 | 14 |
|
16 | 15 | A +{request}+ object gets created with an existing non-null `jobId`.
|
17 | 16 |
|
18 | 17 | ["source","java",subs="attributes,callouts,macros"]
|
19 | 18 | --------------------------------------------------
|
20 | 19 | include-tagged::{doc-tests-file}[{api}-request]
|
21 | 20 | --------------------------------------------------
|
22 |
| -<1> Constructing a new request referencing an existing `jobId` |
| 21 | +<1> Constructing a new request referencing an existing `jobId`. |
23 | 22 |
|
24 |
| -==== Optional Arguments |
| 23 | +==== Optional arguments |
25 | 24 | The following arguments are optional:
|
26 | 25 |
|
27 | 26 | ["source","java",subs="attributes,callouts,macros"]
|
28 | 27 | --------------------------------------------------
|
29 | 28 | include-tagged::{doc-tests-file}[{api}-category-id]
|
30 | 29 | --------------------------------------------------
|
31 |
| -<1> The id of the category to get. Otherwise it will return all categories. |
| 30 | +<1> The ID of the category to get. Otherwise, it will return all categories. |
32 | 31 |
|
33 | 32 | ["source","java",subs="attributes,callouts,macros"]
|
34 | 33 | --------------------------------------------------
|
35 | 34 | include-tagged::{doc-tests-file}[{api}-page]
|
36 | 35 | --------------------------------------------------
|
37 |
| -<1> The page parameters `from` and `size`. `from` specifies the number of categories to skip. |
38 |
| -`size` specifies the maximum number of categories to get. Defaults to `0` and `100` respectively. |
| 36 | +<1> The page parameters `from` and `size`. `from` specifies the number of |
| 37 | +categories to skip. `size` specifies the maximum number of categories to get. |
| 38 | +Defaults to `0` and `100` respectively. |
39 | 39 |
|
40 | 40 | include::../execution.asciidoc[]
|
41 | 41 |
|
42 | 42 | [id="{upid}-{api}-response"]
|
43 |
| -==== Get Categories Response |
| 43 | +==== Get categories response |
44 | 44 |
|
45 | 45 | The returned +{response}+ contains the requested categories:
|
46 | 46 |
|
47 | 47 | ["source","java",subs="attributes,callouts,macros"]
|
48 | 48 | --------------------------------------------------
|
49 | 49 | include-tagged::{doc-tests-file}[{api}-response]
|
50 | 50 | --------------------------------------------------
|
51 |
| -<1> The count of categories that were matched |
52 |
| -<2> The categories retrieved |
| 51 | +<1> The count of categories that were matched. |
| 52 | +<2> The categories retrieved. |
0 commit comments