Glasses model

list

request
GET /api/v2/glasses/models/list HTTP/1.1
Parameter Description

name

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

pageable

Pageable description

response
{
  "content" : [ {
    "name" : "002",
    "deleted" : false
  }, {
    "name" : "003",
    "deleted" : false
  }, {
    "name" : "005",
    "deleted" : false
  }, {
    "name" : "008",
    "deleted" : false
  }, {
    "name" : "01-3191 J02",
    "deleted" : false
  }, {
    "name" : "01-864",
    "deleted" : false
  }, {
    "name" : "011",
    "deleted" : false
  }, {
    "name" : "014",
    "deleted" : false
  }, {
    "name" : "015",
    "deleted" : false
  }, {
    "name" : "018",
    "deleted" : false
  }, {
    "name" : "02-368 17",
    "deleted" : false
  }, {
    "name" : "02-368 7",
    "deleted" : false
  }, {
    "name" : "02-487",
    "deleted" : false
  }, {
    "name" : "02-500",
    "deleted" : false
  }, {
    "name" : "02-528",
    "deleted" : false
  }, {
    "name" : "02-562",
    "deleted" : false
  }, {
    "name" : "02-576",
    "deleted" : false
  }, {
    "name" : "02-582",
    "deleted" : false
  }, {
    "name" : "02-590",
    "deleted" : false
  }, {
    "name" : "02-594",
    "deleted" : false
  } ],
  "pageable" : {
    "pageNumber" : 0,
    "pageSize" : 20,
    "sort" : {
      "empty" : true,
      "sorted" : false,
      "unsorted" : true
    },
    "offset" : 0,
    "paged" : true,
    "unpaged" : false
  },
  "last" : false,
  "totalElements" : 1260,
  "totalPages" : 63,
  "first" : true,
  "size" : 20,
  "number" : 0,
  "sort" : {
    "empty" : true,
    "sorted" : false,
    "unsorted" : true
  },
  "numberOfElements" : 20,
  "empty" : false
}
Table 682. response description
Path Type Description

name

String

glasses model name

deleted

Boolean

is glasses model deleted?

create

request
POST /api/v2/glasses/models HTTP/1.1

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

name

String

glasses model name

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

deleted

Boolean

is glasses model deleted?

Must not be null

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

name

String

glasses model name

deleted

Boolean

is glasses model deleted?

get

request
GET /api/v2/glasses/models?name=Test HTTP/1.1
Table 685. request description
Parameter Description

name

glasses model name

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

name

String

glasses model name

deleted

Boolean

is glasses model deleted?

update

request
PUT /api/v2/glasses/models?name=Test HTTP/1.1

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

name

String

glasses model name

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

deleted

Boolean

is glasses model deleted?

Must not be null

Parameter Description

name

glasses model name

response
HTTP/1.1 200 OK

delete

request
DELETE /api/v2/glasses/models?name=Test HTTP/1.1
Table 688. request description
Parameter Description

name

glasses model name

response
HTTP/1.1 200 OK