Lenses geometry
list
request
GET /api/v2/lenses/geometries/list HTTP/1.1
Parameter | Description |
---|---|
|
String to search by name. EX: ?name=test |
|
response
{
"content" : [ {
"name" : "-",
"deleted" : false
}, {
"name" : "BC 3",
"deleted" : false
}, {
"name" : "BC 4",
"deleted" : false
}, {
"name" : "BC 5",
"deleted" : false
}, {
"name" : "BC 6",
"deleted" : false
}, {
"name" : "BC 8",
"deleted" : false
}, {
"name" : "Асферическая",
"deleted" : false
}, {
"name" : "Биасферическая",
"deleted" : false
}, {
"name" : "Внешняя прогрессия",
"deleted" : false
}, {
"name" : "Внутренняя прогрессия",
"deleted" : false
}, {
"name" : "Лентикуляр",
"deleted" : false
}, {
"name" : "С 28",
"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" : 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 geometry name |
|
|
is lenses geometry deleted? |
create
request
POST /api/v2/lenses/geometries HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
lenses geometry name |
Must not be blank. |
deleted |
Boolean |
is lenses geometry deleted? |
Must not be null |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
lenses geometry name |
|
|
is lenses geometry deleted? |
get
request
GET /api/v2/lenses/geometries?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
lenses geometry name |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
lenses geometry name |
|
|
is lenses geometry deleted? |
update
request
PUT /api/v2/lenses/geometries?name=Test HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
lenses geometry name |
Must not be blank. |
deleted |
Boolean |
is lenses geometry deleted? |
Must not be null |
Parameter | Description |
---|---|
|
lenses geometry name |
response
HTTP/1.1 200 OK
delete
request
DELETE /api/v2/lenses/geometries?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
lenses geometry name |
response
HTTP/1.1 200 OK