Glasses manufacturer

list

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

name

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

pageable

Pageable description

response
{
  "content" : [ {
    "name" : "-",
    "deleted" : false
  }, {
    "name" : "bro",
    "deleted" : false
  }, {
    "name" : "kering",
    "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
  }, {
    "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" : false,
  "totalElements" : 21,
  "totalPages" : 2,
  "first" : true,
  "size" : 20,
  "number" : 0,
  "sort" : {
    "empty" : true,
    "sorted" : false,
    "unsorted" : true
  },
  "numberOfElements" : 20,
  "empty" : false
}
Table 668. response description
Path Type Description

name

String

glasses manufacturer name

deleted

Boolean

is glasses manufacturer deleted?

create

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

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

name

String

glasses manufacturer name

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

deleted

Boolean

is glasses manufacturer deleted?

Must not be null

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

name

String

glasses manufacturer name

deleted

Boolean

is glasses manufacturer deleted?

get

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

name

glasses manufacturer name

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

name

String

glasses manufacturer name

deleted

Boolean

is glasses manufacturer deleted?

update

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

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

name

String

glasses manufacturer name

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

deleted

Boolean

is glasses manufacturer deleted?

Must not be null

Parameter Description

name

glasses manufacturer name

response
HTTP/1.1 200 OK

delete

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

name

glasses manufacturer name

response
HTTP/1.1 200 OK