Filter actors collection.
Sample request:
GET /actors?type=FB&location=FR,FRHON&offset=0&limit=5
If you want to search for multiple values for a given parameter, enter :
param=val1,val2
For example, the query shown above would return the actors that are located in either FR
or FRHON
.
Query parameters
-
Actor code to search for.
Default value is empty.
-
Actor name to search for.
Default value is empty.
-
Actor type to search for.
Default value is empty.
-
Filter by actor's location.
Default value is empty.
-
Boolean that indicates the sort order. If it is set to true, results will be sorted by descending order.
Default value is
false
. -
Index of the first returned result.
Default value is
0
. -
Number of results to be returned. Max value is 10.
Default value is
10
.
GET
/actors
curl \
-X GET https://soget-api-integration.azure-api.net/api-referential-list/v1/actors \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Ocp-Apim-Subscription-Key: $API_KEY"
Response examples (200)
{
"total": 11,
"first": 3,
"items": [
{
"code": "CCGM",
"name": "CMA CGM",
"type": "FB",
"location": "FR",
"organization": "CMA CGM"
}
]
}
Response examples (400)
{
"status": "400",
"timestamp": "2022-10-18T14:53:52.239Z",
"code": "R001",
"message": "Information not found."
}