Glasses manufacturer
list
request
GET /api/v2/glasses/manufacturers/list HTTP/1.1
Parameter | Description |
---|---|
|
String to search by name. EX: ?name=test |
|
response
{
"content" : [ {
"name" : "-",
"deleted" : false
}, {
"name" : "bro",
"deleted" : false
}, {
"name" : "kering",
"deleted" : false
}, {
"name" : "Австрия",
"deleted" : false
}, {
"name" : "Англия",
"deleted" : false
}, {
"name" : "Великобритания",
"deleted" : false
}, {
"name" : "Германия",
"deleted" : false
}, {
"name" : "Гонконг",
"deleted" : false
}, {
"name" : "Дания",
"deleted" : false
}, {
"name" : "Италия",
"deleted" : false
}, {
"name" : "Китай",
"deleted" : false
}, {
"name" : "Корея",
"deleted" : false
}, {
"name" : "Нидерланды",
"deleted" : false
}, {
"name" : "Польша",
"deleted" : false
}, {
"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" : false,
"totalElements" : 21,
"totalPages" : 2,
"first" : true,
"size" : 20,
"number" : 0,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 20,
"empty" : false
}
Path | Type | Description |
---|---|---|
|
|
glasses manufacturer name |
|
|
is glasses manufacturer deleted? |
create
request
POST /api/v2/glasses/manufacturers HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
glasses manufacturer name |
Must not be blank. |
deleted |
Boolean |
is glasses manufacturer deleted? |
Must not be null |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
glasses manufacturer name |
|
|
is glasses manufacturer deleted? |
get
request
GET /api/v2/glasses/manufacturers?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
glasses manufacturer name |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
glasses manufacturer name |
|
|
is glasses manufacturer deleted? |
update
request
PUT /api/v2/glasses/manufacturers?name=Test HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
glasses manufacturer name |
Must not be blank. |
deleted |
Boolean |
is glasses manufacturer deleted? |
Must not be null |
Parameter | Description |
---|---|
|
glasses manufacturer name |
response
HTTP/1.1 200 OK
delete
request
DELETE /api/v2/glasses/manufacturers?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
glasses manufacturer name |
response
HTTP/1.1 200 OK