Lenses brand
list
request
GET /api/v2/lenses/brands/list HTTP/1.1
Parameter | Description |
---|---|
|
String to search by name. EX: ?name=test |
|
response
{
"content" : [ {
"name" : "A-ZONE",
"deleted" : false
}, {
"name" : "AS",
"deleted" : false
}, {
"name" : "AZ",
"deleted" : false
}, {
"name" : "Access Easy A",
"deleted" : false
}, {
"name" : "Access Easy B",
"deleted" : false
}, {
"name" : "Access HD A",
"deleted" : false
}, {
"name" : "Access HD B",
"deleted" : false
}, {
"name" : "Acclimate",
"deleted" : false
}, {
"name" : "Acclimates",
"deleted" : false
}, {
"name" : "Acclimates II",
"deleted" : false
}, {
"name" : "Activations",
"deleted" : false
}, {
"name" : "Airwear",
"deleted" : false
}, {
"name" : "Airwear Baby",
"deleted" : false
}, {
"name" : "Airwear Junior",
"deleted" : false
}, {
"name" : "Airwear Transitions",
"deleted" : false
}, {
"name" : "Altolite",
"deleted" : false
}, {
"name" : "Altolite (TINTABLE)",
"deleted" : false
}, {
"name" : "Altolite Big",
"deleted" : false
}, {
"name" : "Altolite Kids",
"deleted" : false
}, {
"name" : "Anti-Fatigue",
"deleted" : false
} ],
"pageable" : {
"pageNumber" : 0,
"pageSize" : 20,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 0,
"paged" : true,
"unpaged" : false
},
"last" : false,
"totalElements" : 130,
"totalPages" : 7,
"first" : true,
"size" : 20,
"number" : 0,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 20,
"empty" : false
}
Path | Type | Description |
---|---|---|
|
|
lenses brand name |
|
|
is lenses brand deleted? |
create
request
POST /api/v2/lenses/brands HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
lenses brand name |
Must not be blank. |
deleted |
Boolean |
is lenses brand deleted? |
Must not be null |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
lenses brand name |
|
|
is lenses brand deleted? |
get
request
GET /api/v2/lenses/brands?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
lenses brand name |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
lenses brand name |
|
|
is lenses brand deleted? |
update
request
PUT /api/v2/lenses/brands?name=Test HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
lenses brand name |
Must not be blank. |
deleted |
Boolean |
is lenses brand deleted? |
Must not be null |
Parameter | Description |
---|---|
|
lenses brand name |
response
HTTP/1.1 200 OK
delete
request
DELETE /api/v2/lenses/brands?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
lenses brand name |
response
HTTP/1.1 200 OK