Lenses refraction index
list
request
GET /api/v2/lenses/refractions/list HTTP/1.1
Parameter | Description |
---|---|
|
String to search by name. EX: ?value=test |
|
response
{
"content" : [ {
"value" : 1.5,
"deleted" : false
}, {
"value" : 1.52,
"deleted" : false
}, {
"value" : 1.53,
"deleted" : false
}, {
"value" : 1.54,
"deleted" : false
}, {
"value" : 1.55,
"deleted" : false
}, {
"value" : 1.56,
"deleted" : false
}, {
"value" : 1.59,
"deleted" : false
}, {
"value" : 1.6,
"deleted" : false
}, {
"value" : 1.61,
"deleted" : false
}, {
"value" : 1.67,
"deleted" : false
}, {
"value" : 1.7,
"deleted" : false
}, {
"value" : 1.74,
"deleted" : false
}, {
"value" : 1.8,
"deleted" : false
} ],
"pageable" : {
"pageNumber" : 0,
"pageSize" : 20,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 0,
"paged" : true,
"unpaged" : false
},
"last" : true,
"totalElements" : 13,
"totalPages" : 1,
"first" : true,
"size" : 20,
"number" : 0,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 13,
"empty" : false
}
Path | Type | Description |
---|---|---|
|
|
lenses refraction index name |
|
|
is lenses refraction index deleted? |
create
request
POST /api/v2/lenses/refractions HTTP/1.1
{
"value" : 1.22,
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
lenses refraction index name |
|
deleted |
Boolean |
is lenses refraction index deleted? |
Must not be null |
response
{
"value" : 1.22,
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
lenses refraction index name |
|
|
is lenses refraction index deleted? |
get
request
GET /api/v2/lenses/refractions?value=1.22 HTTP/1.1
Parameter | Description |
---|---|
|
lenses refraction index value |
response
{
"value" : 1.22,
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
lenses refraction index name |
|
|
is lenses refraction index deleted? |
update
request
PUT /api/v2/lenses/refractions?value=1.22 HTTP/1.1
{
"value" : 1.22,
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
lenses refraction index name |
|
deleted |
Boolean |
is lenses refraction index deleted? |
Must not be null |
Parameter | Description |
---|---|
|
lenses refraction index value |
response
HTTP/1.1 200 OK
delete
request
DELETE /api/v2/lenses/refractions?value=1.22 HTTP/1.1
Parameter | Description |
---|---|
|
lenses refraction index value |
response
HTTP/1.1 200 OK