"pagination": { "per_page": 25, "total_pages": 6, "total_objects": 135 }, "trait_values": [ { "id": 1, "column_name": "body_shape", "column_value": "Round Body (Rhumba)", "description": "None provided.", "approved": true, "image": { "thumb": "http://s3.amazonaws.com/eb-api-images/images/files/000/000/416/thumb/01.jpg?1451585446", "small": "http://s3.amazonaws.com/eb-api-images/images/files/000/000/416/small/01.jpg?1451585446", "medium": "http://s3.amazonaws.com/eb-api-images/images/files/000/000/416/medium/01.jpg?1451585446", "large": "http://s3.amazonaws.com/eb-api-images/images/files/000/000/416/large/01.jpg?1451585446", "original": "http://s3.amazonaws.com/eb-api-images/images/files/000/000/416/original/01.jpg?1451585446" } }, { "id": 2, "column_name": "body_shape", "column_value": "Rect (Bo Diddley)", "description": "None provided.", "approved": true, "image": { "thumb": "http://s3.amazonaws.com/eb-api-images/images/files/000/000/767/thumb/Bo_diddley.jpg?1453227527", "small": "http://s3.amazonaws.com/eb-api-images/images/files/000/000/767/small/Bo_diddley.jpg?1453227527", "medium": "http://s3.amazonaws.com/eb-api-images/images/files/000/000/767/medium/Bo_diddley.jpg?1453227527", "large": "http://s3.amazonaws.com/eb-api-images/images/files/000/000/767/large/Bo_diddley.jpg?1453227527", "original": "http://s3.amazonaws.com/eb-api-images/images/files/000/000/767/original/Bo_diddley.jpg?1453227527" } } ... ]
GET /traits/1368/values 200 { "pagination": { "per_page": 25, "total_pages": 0, "total_objects": 0 }, "trait_values": [] }
Param name | Description |
---|---|
page optional |
Validations:
|
per_page optional |
Validations:
|
only optional |
An optional set of comma-separated trait column names. When you pass a specific set of column names (eg: ‘?column_name=fingerboard_inlay,neck_binding`), the JSON response is an object with an array of results for each requested column name. Validations:
|
in_use optional |
Validations:
|
approved optional |
Validations:
|
pending optional |
Validations:
|
Code | Description |
---|---|
400 |
curl -X POST -H "Content-Type: application/json" -d '{"column_name": "number_of_strings", "column_value": "100", "description": "100 strings!"}' -H "Authorization: XXXX" http://localhost:3000/traits/number_of_strings/values { "trait_value": { "id": 5634, "column_name": "number_of_strings", "column_value": "100", "description": "100 strings!", "approved": false, "image": null } }
POST /traits/1380/values { "column_name": "test-column-name", "column_value": "Tony Kshlerin1a3ad207-35ca-4eba-b3d3-ba241f6948b0", "description": "Non voluptatem repellendus vero nobis temporibus autem minus a.", "trait_value": { "column_name": "test-column-name", "column_value": "Tony Kshlerin1a3ad207-35ca-4eba-b3d3-ba241f6948b0", "description": "Non voluptatem repellendus vero nobis temporibus autem minus a." } } 201 { "id": 601, "column_name": "test-column-name", "column_value": "Tony Kshlerin1a3ad207-35ca-4eba-b3d3-ba241f6948b0", "description": "Non voluptatem repellendus vero nobis temporibus autem minus a.", "approved": false, "position": null, "image": null }
Param name | Description |
---|---|
name optional |
Validations:
|
column_value optional |
Validations:
|
description optional |
An optional description Validations:
|
Code | Description |
---|---|
400 |
PATCH /traits/1386/values/604 { "column_value": "red", "trait_value": { "column_value": "red" } } 202 { "id": 604, "column_name": "test-column-name", "column_value": "red", "description": "Distinctio nesciunt porro consequuntur odit.", "approved": false, "position": null, "image": null }
Param name | Description |
---|---|
name optional |
Validations:
|
column_value optional |
Validations:
|
description optional |
An optional description Validations:
|
DELETE /traits/1391/values/609 { "trait_value": {} } 204