(Quick Reference)
Service: Show an item attribute
Description: This web service return an existing item attribute of the specified id in JSON format
URL:
https://BASE_URL/api/VERSION/itemAttributes/{id}
Method: GET
Parameters:
Name | Description | Type | Required | Example values |
---|
id | The numerical ID of the desired item attribute | Long | Yes | 777 |
Success Output
Success case: response.status=200
{
"id": 1,
"displayOrder": 0,
"item": {
"id": 495,
"reference": "bracelet-GRP09062",
"name": "Knot Band Bracelet",
"href": "/api/v1.0/items/495"
},
"attribute": {
"id": 1,
"reference": "color",
"name": "couleur",
"href": "/api/v1.0/attributes/1"
},
"attributeValue": {
"id": 1,
"value": "vert",
"color": "#03b69c",
"href": "/api/v1.0/attributeValues/1"
},
"organization": "entity1",
"dateCreated": "2016-01-18T15:43:56Z",
"lastUpdated": "2016-05-19T10:52:33Z"
}
Failure Output
Failure case:response.status = 404
{
"error": "not_found",
"error_description": "The item attribute with the id 199 doesn't exist."
}
Failure case:response.status = 400
{
"error": "invalid_param_type",
"error_description": "The type of parameter id you provided is not valid for this request."
}