Fetching Labels
Request
| HTTP Method | GET |
| Endpoint | /api/v1/labels |
By sending a request to Fess at http://<Server Name>/api/v1/labels, you can receive a list of labels registered in Fess in JSON format.
Request Parameters
There are no available request parameters.
Response
The following response is returned:
Each element is as follows:
| record_count | Number of registered labels. |
| data | Parent element of search results. |
| label | Label name. |
| value | Label value. |
Table: Response Information
Usage Examples
Request example using curl command:
Request example using JavaScript:
Error Response
When the label API fails, the following error response is returned: