Lenses color

list

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

name

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

pageable

Pageable description

response
{
  "content" : [ {
    "name" : "Brown",
    "deleted" : false
  }, {
    "name" : "Brown 85%",
    "deleted" : false
  }, {
    "name" : "Graphite Green",
    "deleted" : false
  }, {
    "name" : "Gray",
    "deleted" : false
  }, {
    "name" : "Gray 1",
    "deleted" : false
  }, {
    "name" : "Gray 3",
    "deleted" : false
  }, {
    "name" : "Gray 85%",
    "deleted" : false
  }, {
    "name" : "Green",
    "deleted" : false
  }, {
    "name" : "Green 15",
    "deleted" : false
  }, {
    "name" : "Grey",
    "deleted" : false
  }, {
    "name" : "Pioneer 85%",
    "deleted" : false
  } ],
  "pageable" : {
    "pageNumber" : 0,
    "pageSize" : 20,
    "sort" : {
      "empty" : true,
      "sorted" : false,
      "unsorted" : true
    },
    "offset" : 0,
    "paged" : true,
    "unpaged" : false
  },
  "last" : true,
  "totalElements" : 11,
  "totalPages" : 1,
  "first" : true,
  "size" : 20,
  "number" : 0,
  "sort" : {
    "empty" : true,
    "sorted" : false,
    "unsorted" : true
  },
  "numberOfElements" : 11,
  "empty" : false
}
Table 724. response description
Path Type Description

name

String

lenses color name

deleted

Boolean

is lenses color deleted?

create

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

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

name

String

lenses color name

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

deleted

Boolean

is lenses color deleted?

Must not be null

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

name

String

lenses color name

deleted

Boolean

is lenses color deleted?

get

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

name

lenses color name

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

name

String

lenses color name

deleted

Boolean

is lenses color deleted?

update

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

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

name

String

lenses color name

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

deleted

Boolean

is lenses color deleted?

Must not be null

Parameter Description

name

lenses color name

response
HTTP/1.1 200 OK

delete

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

name

lenses color name

response
HTTP/1.1 200 OK