Glasses brand

list

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

name

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

pageable

Pageable description

response
{
  "content" : [ {
    "name" : "365 Day",
    "deleted" : false
  }, {
    "name" : "A.Marii",
    "deleted" : false
  }, {
    "name" : "AZ",
    "deleted" : false
  }, {
    "name" : "Agent Fashion",
    "deleted" : false
  }, {
    "name" : "Agio",
    "deleted" : false
  }, {
    "name" : "Aimegi",
    "deleted" : false
  }, {
    "name" : "Air Force",
    "deleted" : false
  }, {
    "name" : "Alanie",
    "deleted" : false
  }, {
    "name" : "Alex Thorn",
    "deleted" : false
  }, {
    "name" : "Alexandr MQuin",
    "deleted" : false
  }, {
    "name" : "Allison",
    "deleted" : false
  }, {
    "name" : "Amshar",
    "deleted" : false
  }, {
    "name" : "Aniramela",
    "deleted" : false
  }, {
    "name" : "Assoluto",
    "deleted" : false
  }, {
    "name" : "Automan",
    "deleted" : false
  }, {
    "name" : "Avva",
    "deleted" : false
  }, {
    "name" : "Babylook",
    "deleted" : false
  }, {
    "name" : "Baoma",
    "deleted" : false
  }, {
    "name" : "Barracuda",
    "deleted" : false
  }, {
    "name" : "Bauhaus",
    "deleted" : false
  } ],
  "pageable" : {
    "pageNumber" : 0,
    "pageSize" : 20,
    "sort" : {
      "empty" : true,
      "sorted" : false,
      "unsorted" : true
    },
    "offset" : 0,
    "paged" : true,
    "unpaged" : false
  },
  "last" : false,
  "totalElements" : 231,
  "totalPages" : 12,
  "first" : true,
  "size" : 20,
  "number" : 0,
  "sort" : {
    "empty" : true,
    "sorted" : false,
    "unsorted" : true
  },
  "numberOfElements" : 20,
  "empty" : false
}
Table 647. response description
Path Type Description

name

String

glasses brand name

deleted

Boolean

is glasses brand deleted?

create

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

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

name

String

glasses brand name

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

deleted

Boolean

is glasses brand deleted?

Must not be null

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

name

String

glasses brand name

deleted

Boolean

is glasses brand deleted?

get

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

name

glasses brand name

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

name

String

glasses brand name

deleted

Boolean

is glasses brand deleted?

update

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

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

name

String

glasses brand name

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

deleted

Boolean

is glasses brand deleted?

Must not be null

Parameter Description

name

glasses brand name

response
HTTP/1.1 200 OK

delete

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

name

glasses brand name

response
HTTP/1.1 200 OK