Filter dangerous codes.
Sample request:
GET /dangerous-codes?type=IMDG&code=1.2,1.1&offset=0&limit=5
The possible types of dangerous code are :
IMDG
: International Maritime Dangerous Goods codes.UNDG
: United Nations Dangerous Goods codes.
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 dangerous codes that have a code of 1.2
or 1.1
.
Query parameters
-
Search characters.
Default value is empty.
-
Dangerous code description.
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
/dangerous-codes/{type}
curl \
-X GET https://soget-api-integration.azure-api.net/api-referential-list/v1/dangerous-codes/{type} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Ocp-Apim-Subscription-Key: $API_KEY"
Response examples (200)
{
"total": 11,
"first": 3,
"items": [
{
"type": "IMDG",
"code": "1.1",
"description": "Substances and articles which have a mass explosion hazard"
}
]
}
Response examples (400)
{
"status": "400",
"timestamp": "2022-10-18T14:53:52.239Z",
"code": "R001",
"message": "Information not found."
}