Lenses manufacturer
list
request
GET /api/v2/lenses/manufacturers/list HTTP/1.1
Parameter | Description |
---|---|
|
String to search by name. EX: ?name=test |
|
response
{
"content" : [ {
"name" : "BBGR",
"deleted" : false
}, {
"name" : "Chemiglas Corp.",
"deleted" : false
}, {
"name" : "Default for manufacturer",
"deleted" : false
}, {
"name" : "Essilor",
"deleted" : false
}, {
"name" : "Hoya",
"deleted" : false
}, {
"name" : "ILT",
"deleted" : false
}, {
"name" : "LTL",
"deleted" : false
}, {
"name" : "Lencor Vision",
"deleted" : false
}, {
"name" : "Rodenstock",
"deleted" : false
}, {
"name" : "Seiko",
"deleted" : false
}, {
"name" : "Shamir",
"deleted" : false
}, {
"name" : "Synchrony",
"deleted" : false
}, {
"name" : "Younger Optics",
"deleted" : false
}, {
"name" : "Zeiss",
"deleted" : false
}, {
"name" : "bro",
"deleted" : false
} ],
"pageable" : {
"pageNumber" : 0,
"pageSize" : 20,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 0,
"paged" : true,
"unpaged" : false
},
"last" : true,
"totalElements" : 15,
"totalPages" : 1,
"first" : true,
"size" : 20,
"number" : 0,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 15,
"empty" : false
}
Path | Type | Description |
---|---|---|
|
|
lenses manufacturer name |
|
|
is lenses manufacturer deleted? |
create
request
POST /api/v2/lenses/manufacturers HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
lenses manufacturer name |
Must not be blank. |
deleted |
Boolean |
is lenses manufacturer deleted? |
Must not be null |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
lenses manufacturer name |
|
|
is lenses manufacturer deleted? |
get
request
GET /api/v2/lenses/manufacturers?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
lenses manufacturer name |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
lenses manufacturer name |
|
|
is lenses manufacturer deleted? |
update
request
PUT /api/v2/lenses/manufacturers?name=Test HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
lenses manufacturer name |
Must not be blank. |
deleted |
Boolean |
is lenses manufacturer deleted? |
Must not be null |
Parameter | Description |
---|---|
|
lenses manufacturer name |
response
HTTP/1.1 200 OK
delete
request
DELETE /api/v2/lenses/manufacturers?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
lenses manufacturer name |
response
HTTP/1.1 200 OK