Contact lenses manufacturer

list

request
GET /api/v2/contact-lenses/manufacturers/list HTTP/1.1
Parameter Description

name

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

pageable

Pageable description

response
{
  "content" : [ {
    "name" : "ALCON",
    "deleted" : false
  }, {
    "name" : "BAUSCH&LOMB",
    "deleted" : false
  }, {
    "name" : "CIBA",
    "deleted" : false
  }, {
    "name" : "CooperVision",
    "deleted" : false
  }, {
    "name" : "Interojo",
    "deleted" : false
  }, {
    "name" : "Johnson&Johnson",
    "deleted" : false
  }, {
    "name" : "OKVision",
    "deleted" : false
  } ],
  "pageable" : {
    "pageNumber" : 0,
    "pageSize" : 20,
    "sort" : {
      "empty" : true,
      "sorted" : false,
      "unsorted" : true
    },
    "offset" : 0,
    "paged" : true,
    "unpaged" : false
  },
  "last" : true,
  "totalElements" : 7,
  "totalPages" : 1,
  "first" : true,
  "size" : 20,
  "number" : 0,
  "sort" : {
    "empty" : true,
    "sorted" : false,
    "unsorted" : true
  },
  "numberOfElements" : 7,
  "empty" : false
}
Table 447. response description
Path Type Description

name

String

contact lenses manufacturer name

deleted

Boolean

is contact lenses manufacturer deleted?

labels

request
GET /api/v2/contact-lenses/manufacturers/labels HTTP/1.1
response
[ {
  "name" : "ALCON",
  "deleted" : false
}, {
  "name" : "BAUSCH&LOMB",
  "deleted" : false
}, {
  "name" : "CIBA",
  "deleted" : false
}, {
  "name" : "CooperVision",
  "deleted" : false
}, {
  "name" : "Interojo",
  "deleted" : false
}, {
  "name" : "Johnson&Johnson",
  "deleted" : false
}, {
  "name" : "OKVision",
  "deleted" : false
} ]
Table 448. response description
Path Type Description

name

String

contact lenses manufacturer name

deleted

Boolean

is contact lenses manufacturer deleted?

create

request
POST /api/v2/contact-lenses/manufacturers HTTP/1.1

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

name

String

contact lenses manufacturer name

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

deleted

Boolean

is contact lenses manufacturer deleted?

Must not be null

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

name

String

contact lenses manufacturer name

deleted

Boolean

is contact lenses manufacturer deleted?

get

request
GET /api/v2/contact-lenses/manufacturers?name=Test HTTP/1.1
Table 451. request description
Parameter Description

name

contact lenses manufacturer name

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

name

String

contact lenses manufacturer name

deleted

Boolean

is contact lenses manufacturer deleted?

update

request
PUT /api/v2/contact-lenses/manufacturers?name=Test HTTP/1.1

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

name

String

contact lenses manufacturer name

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

deleted

Boolean

is contact lenses manufacturer deleted?

Must not be null

Parameter Description

name

contact lenses manufacturer name

response
HTTP/1.1 200 OK

delete

request
DELETE /api/v2/contact-lenses/manufacturers?name=Test HTTP/1.1
Table 454. request description
Parameter Description

name

contact lenses manufacturer name

response
HTTP/1.1 200 OK