Sunglasses model

list

request
GET /api/v2/sunglasses/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" : "006",
    "deleted" : false
  }, {
    "name" : "01-353",
    "deleted" : false
  }, {
    "name" : "01-600",
    "deleted" : false
  }, {
    "name" : "0102/S",
    "deleted" : false
  }, {
    "name" : "011B",
    "deleted" : false
  }, {
    "name" : "0135",
    "deleted" : false
  }, {
    "name" : "014 579X S2",
    "deleted" : false
  }, {
    "name" : "0306B",
    "deleted" : false
  }, {
    "name" : "031 A47 S1",
    "deleted" : false
  }, {
    "name" : "04-001",
    "deleted" : false
  }, {
    "name" : "04-019",
    "deleted" : false
  }, {
    "name" : "04-047",
    "deleted" : false
  }, {
    "name" : "05-001",
    "deleted" : false
  }, {
    "name" : "05-036",
    "deleted" : false
  }, {
    "name" : "1014",
    "deleted" : false
  }, {
    "name" : "10241",
    "deleted" : false
  }, {
    "name" : "1041",
    "deleted" : false
  }, {
    "name" : "11-219",
    "deleted" : false
  }, {
    "name" : "11-291",
    "deleted" : false
  } ],
  "pageable" : {
    "pageNumber" : 0,
    "pageSize" : 20,
    "sort" : {
      "empty" : true,
      "sorted" : false,
      "unsorted" : true
    },
    "offset" : 0,
    "paged" : true,
    "unpaged" : false
  },
  "last" : false,
  "totalElements" : 595,
  "totalPages" : 30,
  "first" : true,
  "size" : 20,
  "number" : 0,
  "sort" : {
    "empty" : true,
    "sorted" : false,
    "unsorted" : true
  },
  "numberOfElements" : 20,
  "empty" : false
}
Table 831. response description
Path Type Description

name

String

sunglasses model name

deleted

Boolean

is sunglasses model deleted?

create

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

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

name

String

sunglasses model name

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

deleted

Boolean

is sunglasses model deleted?

Must not be null

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

name

String

sunglasses model name

deleted

Boolean

is sunglasses model deleted?

get

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

name

sunglasses model name

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

name

String

sunglasses model name

deleted

Boolean

is sunglasses model deleted?

update

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

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

name

String

sunglasses model name

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

deleted

Boolean

is sunglasses model deleted?

Must not be null

Parameter Description

name

sunglasses model name

response
HTTP/1.1 200 OK

delete

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

name

sunglasses model name

response
HTTP/1.1 200 OK