Lenses geometry

list

request
GET /api/v2/lenses/geometries/list HTTP/1.1
Parameter Description

name

String to search by name. EX: ?name=test

pageable

Pageable description

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
}
Table 745. response description
Path Type Description

name

String

lenses geometry name

deleted

Boolean

is lenses geometry deleted?

create

request
POST /api/v2/lenses/geometries HTTP/1.1

{
  "name" : "Test",
  "deleted" : false
}
Table 746. request description
Path Type Description Constraints

name

String

lenses geometry name

Must not be blank.
Size must be between 0 and 50 inclusive

deleted

Boolean

is lenses geometry deleted?

Must not be null

response
{
  "name" : "Test",
  "deleted" : false
}
Table 747. response description
Path Type Description

name

String

lenses geometry name

deleted

Boolean

is lenses geometry deleted?

get

request
GET /api/v2/lenses/geometries?name=Test HTTP/1.1
Table 748. request description
Parameter Description

name

lenses geometry name

response
{
  "name" : "Test",
  "deleted" : false
}
Table 749. response description
Path Type Description

name

String

lenses geometry name

deleted

Boolean

is lenses geometry deleted?

update

request
PUT /api/v2/lenses/geometries?name=Test HTTP/1.1

{
  "name" : "Test",
  "deleted" : false
}
Table 750. request description
Path Type Description Constraints

name

String

lenses geometry name

Must not be blank.
Size must be between 0 and 50 inclusive

deleted

Boolean

is lenses geometry deleted?

Must not be null

Parameter Description

name

lenses geometry name

response
HTTP/1.1 200 OK

delete

request
DELETE /api/v2/lenses/geometries?name=Test HTTP/1.1
Table 751. request description
Parameter Description

name

lenses geometry name

response
HTTP/1.1 200 OK