Lenses class

list

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

name

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

pageable

Pageable description

response
{
  "content" : [ {
    "name" : "-",
    "deleted" : false
  }, {
    "name" : "Компьютерная",
    "deleted" : false
  }, {
    "name" : "Поляризационная",
    "deleted" : false
  }, {
    "name" : "Поляризационная Фотохромная",
    "deleted" : false
  }, {
    "name" : "Поляризационная фотохромная",
    "deleted" : false
  }, {
    "name" : "Солнцезащитная",
    "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" : 9,
  "totalPages" : 1,
  "first" : true,
  "size" : 20,
  "number" : 0,
  "sort" : {
    "empty" : true,
    "sorted" : false,
    "unsorted" : true
  },
  "numberOfElements" : 9,
  "empty" : false
}
Table 717. response description
Path Type Description

name

String

lenses class name

deleted

Boolean

is lenses class deleted?

create

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

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

name

String

lenses class name

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

deleted

Boolean

is lenses class deleted?

Must not be null

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

name

String

lenses class name

deleted

Boolean

is lenses class deleted?

get

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

name

lenses class name

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

name

String

lenses class name

deleted

Boolean

is lenses class deleted?

update

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

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

name

String

lenses class name

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

deleted

Boolean

is lenses class deleted?

Must not be null

Parameter Description

name

lenses class name

response
HTTP/1.1 200 OK

delete

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

name

lenses class name

response
HTTP/1.1 200 OK