Glasses target group

list

request
GET /api/v2/glasses/target-groups/list HTTP/1.1
Parameter Description

name

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

pageable

Pageable description

response
{
  "content" : [ {
    "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" : true,
  "totalElements" : 8,
  "totalPages" : 1,
  "first" : true,
  "size" : 20,
  "number" : 0,
  "sort" : {
    "empty" : true,
    "sorted" : false,
    "unsorted" : true
  },
  "numberOfElements" : 8,
  "empty" : false
}
Table 696. response description
Path Type Description

name

String

glasses target group name

deleted

Boolean

is glasses target group deleted?

create

request
POST /api/v2/glasses/target-groups HTTP/1.1

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

name

String

glasses target group name

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

deleted

Boolean

is glasses target group deleted?

Must not be null

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

name

String

glasses target group name

deleted

Boolean

is glasses target group deleted?

get

request
GET /api/v2/glasses/target-groups?name=Test HTTP/1.1
Table 699. request description
Parameter Description

name

glasses target group name

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

name

String

glasses target group name

deleted

Boolean

is glasses target group deleted?

update

request
PUT /api/v2/glasses/target-groups?name=Test HTTP/1.1

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

name

String

glasses target group name

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

deleted

Boolean

is glasses target group deleted?

Must not be null

Parameter Description

name

glasses target group name

response
HTTP/1.1 200 OK

delete

request
DELETE /api/v2/glasses/target-groups?name=Test HTTP/1.1
Table 702. request description
Parameter Description

name

glasses target group name

response
HTTP/1.1 200 OK