Lenses refraction index

list

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

value

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

pageable

Pageable description

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

name

String

lenses refraction index name

deleted

Boolean

is lenses refraction index deleted?

create

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

{
  "value" : 1.22,
  "deleted" : false
}
Table 767. request description
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
}
Table 768. response description
Path Type Description

name

String

lenses refraction index name

deleted

Boolean

is lenses refraction index deleted?

get

request
GET /api/v2/lenses/refractions?value=1.22 HTTP/1.1
Table 769. request description
Parameter Description

value

lenses refraction index value

response
{
  "value" : 1.22,
  "deleted" : false
}
Table 770. response description
Path Type Description

name

String

lenses refraction index name

deleted

Boolean

is lenses refraction index deleted?

update

request
PUT /api/v2/lenses/refractions?value=1.22 HTTP/1.1

{
  "value" : 1.22,
  "deleted" : false
}
Table 771. request description
Path Type Description Constraints

name

String

lenses refraction index name

deleted

Boolean

is lenses refraction index deleted?

Must not be null

Parameter Description

value

lenses refraction index value

response
HTTP/1.1 200 OK

delete

request
DELETE /api/v2/lenses/refractions?value=1.22 HTTP/1.1
Table 772. request description
Parameter Description

value

lenses refraction index value

response
HTTP/1.1 200 OK