5.7.1. Overview of the API interface
Display the list by theme of existing endpoints
To be able to filter this list
Know all the information of each endpoint
To run the endpoint,
Know its curl command
Know its URL request
Note
The API is named swagger.
Access to this interface is available in the title bar of the main interface.
`API`
button (4) of the title bar, the following screen is displayed.Item |
Description |
---|---|
1 |
|
2 |
Current account name: here account administrator |
3 |
|
4 |
Button |
5 |
Endpoints are sorted by theme (tag) |
6 |
Filtration field: allows to filter themes |
Note
A feature requiring administrator rights cannot be used by a user with only operator rights.
5.7.1.1. Detail for an endpoint
The information displayed for an endpoint is as follows:
Item |
Description |
---|---|
1 |
Title line. It includes the action (here GET), the name of the endpoint (here/api/gcaps), the accesses (here Administrators and Opertors), the description of the endpoint |
2 |
|
8 |
Field
`Parameters` : displays the optional or mandatory parameters to execute the query. For mandatory parameters, refer to the box (6).This area includes the parameters needed for the selected API. In this example, there are two: the page number and the number of results per page.
|
7 |
|
6 |
|
Note
If a parameter is mandatory, an asterisk with `required`
is displayed.
Note
In this screen, it is not possible to enter parameters. To do this, you must execute the query.
5.7.1.1.2. Example with default values
In this example, the information is displayed with the following defaults:
Parameters of type integer are displayed with
`0`
Parameters of type string are displayed with
`string`
textParameters of type boolean are displayed with
`true`
text
The marking is the same as in the output model.