Glasses color
list
request
GET /api/v2/glasses/colors/list HTTP/1.1
Parameter | Description |
---|---|
|
String to search by name. EX: ?name=test |
|
response
{
"content" : [ {
"name" : "001",
"deleted" : false
}, {
"name" : "002",
"deleted" : false
}, {
"name" : "003",
"deleted" : false
}, {
"name" : "004",
"deleted" : false
}, {
"name" : "005",
"deleted" : false
}, {
"name" : "006",
"deleted" : false
}, {
"name" : "007",
"deleted" : false
}, {
"name" : "008",
"deleted" : false
}, {
"name" : "009",
"deleted" : false
}, {
"name" : "010",
"deleted" : false
}, {
"name" : "011",
"deleted" : false
}, {
"name" : "012",
"deleted" : false
}, {
"name" : "07",
"deleted" : false
}, {
"name" : "07P",
"deleted" : false
}, {
"name" : "08",
"deleted" : false
}, {
"name" : "08P",
"deleted" : false
}, {
"name" : "09Pk",
"deleted" : false
}, {
"name" : "13P",
"deleted" : false
}, {
"name" : "17",
"deleted" : false
}, {
"name" : "17P",
"deleted" : false
} ],
"pageable" : {
"pageNumber" : 0,
"pageSize" : 20,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 0,
"paged" : true,
"unpaged" : false
},
"last" : false,
"totalElements" : 160,
"totalPages" : 8,
"first" : true,
"size" : 20,
"number" : 0,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 20,
"empty" : false
}
Path | Type | Description |
---|---|---|
|
|
glasses color name |
|
|
is glasses color deleted? |
create
request
POST /api/v2/glasses/colors HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
glasses color name |
Must not be blank. |
deleted |
Boolean |
is glasses color deleted? |
Must not be null |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
glasses color name |
|
|
is glasses color deleted? |
get
request
GET /api/v2/glasses/colors?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
glasses color name |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
glasses color name |
|
|
is glasses color deleted? |
update
request
PUT /api/v2/glasses/colors?name=Test HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
glasses color name |
Must not be blank. |
deleted |
Boolean |
is glasses color deleted? |
Must not be null |
Parameter | Description |
---|---|
|
glasses color name |
response
HTTP/1.1 200 OK
delete
request
DELETE /api/v2/glasses/colors?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
glasses color name |
response
HTTP/1.1 200 OK