Glasses size
list
request
GET /api/v2/glasses/sizes/list HTTP/1.1
Parameter | Description |
---|---|
|
String to search by name. EX: ?name=test |
|
response
{
"content" : [ {
"name" : "42-14-115",
"deleted" : false
}, {
"name" : "43-13-115",
"deleted" : false
}, {
"name" : "46-15-125",
"deleted" : false
}, {
"name" : "47-16-130",
"deleted" : false
}, {
"name" : "48-16-125",
"deleted" : false
}, {
"name" : "48-16-135",
"deleted" : false
}, {
"name" : "48-17-130",
"deleted" : false
}, {
"name" : "48-18",
"deleted" : false
}, {
"name" : "49",
"deleted" : false
}, {
"name" : "49-15-125",
"deleted" : false
}, {
"name" : "49-16-125",
"deleted" : false
}, {
"name" : "49-16-130",
"deleted" : false
}, {
"name" : "49-17",
"deleted" : false
}, {
"name" : "49-19-135",
"deleted" : false
}, {
"name" : "49-21-140",
"deleted" : false
}, {
"name" : "49-23-140",
"deleted" : false
}, {
"name" : "50",
"deleted" : false
}, {
"name" : "50-16-125",
"deleted" : false
}, {
"name" : "50-17-140",
"deleted" : false
}, {
"name" : "50-19-140",
"deleted" : false
} ],
"pageable" : {
"pageNumber" : 0,
"pageSize" : 20,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 0,
"paged" : true,
"unpaged" : false
},
"last" : false,
"totalElements" : 90,
"totalPages" : 5,
"first" : true,
"size" : 20,
"number" : 0,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 20,
"empty" : false
}
Path | Type | Description |
---|---|---|
|
|
glasses size name |
|
|
is glasses size deleted? |
create
request
POST /api/v2/glasses/sizes HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
glasses size name |
Must not be blank. |
deleted |
Boolean |
is glasses size deleted? |
Must not be null |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
glasses size name |
|
|
is glasses size deleted? |
get
request
GET /api/v2/glasses/sizes?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
glasses size name |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
glasses size name |
|
|
is glasses size deleted? |
update
request
PUT /api/v2/glasses/sizes?name=Test HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
glasses size name |
Must not be blank. |
deleted |
Boolean |
is glasses size deleted? |
Must not be null |
Parameter | Description |
---|---|
|
glasses size name |
response
HTTP/1.1 200 OK
delete
request
DELETE /api/v2/glasses/sizes?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
glasses size name |
response
HTTP/1.1 200 OK