Glasses type
list
request
GET /api/v2/glasses/types/list HTTP/1.1
Parameter | Description |
---|---|
|
String to search by name. EX: ?name=test |
|
response
{
"content" : [ {
"name" : "-",
"deleted" : false
}, {
"name" : "Винтовая",
"deleted" : false
}, {
"name" : "Для чтения",
"deleted" : false
}, {
"name" : "Лесочная",
"deleted" : false
}, {
"name" : "Ободковая",
"deleted" : false
}, {
"name" : "не указано",
"deleted" : false
} ],
"pageable" : {
"pageNumber" : 0,
"pageSize" : 20,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 0,
"paged" : true,
"unpaged" : false
},
"last" : true,
"totalElements" : 6,
"totalPages" : 1,
"first" : true,
"size" : 20,
"number" : 0,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 6,
"empty" : false
}
Path | Type | Description |
---|---|---|
|
|
glasses type name |
|
|
is glasses type deleted? |
create
request
POST /api/v2/glasses/types HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
glasses type name |
Must not be blank. |
deleted |
Boolean |
is glasses type deleted? |
Must not be null |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
glasses type name |
|
|
is glasses type deleted? |
get
request
GET /api/v2/glasses/types?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
glasses type name |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
glasses type name |
|
|
is glasses type deleted? |
update
request
PUT /api/v2/glasses/types?name=Test HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
glasses type name |
Must not be blank. |
deleted |
Boolean |
is glasses type deleted? |
Must not be null |
Parameter | Description |
---|---|
|
glasses type name |
response
HTTP/1.1 200 OK
delete
request
DELETE /api/v2/glasses/types?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
glasses type name |
response
HTTP/1.1 200 OK