Glasses brand
list
request
GET /api/v2/glasses/brands/list HTTP/1.1
Parameter | Description |
---|---|
|
String to search by name. EX: ?name=test |
|
response
{
"content" : [ {
"name" : "365 Day",
"deleted" : false
}, {
"name" : "A.Marii",
"deleted" : false
}, {
"name" : "AZ",
"deleted" : false
}, {
"name" : "Agent Fashion",
"deleted" : false
}, {
"name" : "Agio",
"deleted" : false
}, {
"name" : "Aimegi",
"deleted" : false
}, {
"name" : "Air Force",
"deleted" : false
}, {
"name" : "Alanie",
"deleted" : false
}, {
"name" : "Alex Thorn",
"deleted" : false
}, {
"name" : "Alexandr MQuin",
"deleted" : false
}, {
"name" : "Allison",
"deleted" : false
}, {
"name" : "Amshar",
"deleted" : false
}, {
"name" : "Aniramela",
"deleted" : false
}, {
"name" : "Assoluto",
"deleted" : false
}, {
"name" : "Automan",
"deleted" : false
}, {
"name" : "Avva",
"deleted" : false
}, {
"name" : "Babylook",
"deleted" : false
}, {
"name" : "Baoma",
"deleted" : false
}, {
"name" : "Barracuda",
"deleted" : false
}, {
"name" : "Bauhaus",
"deleted" : false
} ],
"pageable" : {
"pageNumber" : 0,
"pageSize" : 20,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 0,
"paged" : true,
"unpaged" : false
},
"last" : false,
"totalElements" : 231,
"totalPages" : 12,
"first" : true,
"size" : 20,
"number" : 0,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 20,
"empty" : false
}
Path | Type | Description |
---|---|---|
|
|
glasses brand name |
|
|
is glasses brand deleted? |
create
request
POST /api/v2/glasses/brands HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
glasses brand name |
Must not be blank. |
deleted |
Boolean |
is glasses brand deleted? |
Must not be null |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
glasses brand name |
|
|
is glasses brand deleted? |
get
request
GET /api/v2/glasses/brands?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
glasses brand name |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
glasses brand name |
|
|
is glasses brand deleted? |
update
request
PUT /api/v2/glasses/brands?name=Test HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
glasses brand name |
Must not be blank. |
deleted |
Boolean |
is glasses brand deleted? |
Must not be null |
Parameter | Description |
---|---|
|
glasses brand name |
response
HTTP/1.1 200 OK
delete
request
DELETE /api/v2/glasses/brands?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
glasses brand name |
response
HTTP/1.1 200 OK