Reason markdown

list

request
GET /api/v2/general/reason-markdowns/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
  } ],
  "pageable" : {
    "pageNumber" : 0,
    "pageSize" : 20,
    "sort" : {
      "empty" : true,
      "sorted" : false,
      "unsorted" : true
    },
    "offset" : 0,
    "paged" : true,
    "unpaged" : false
  },
  "last" : true,
  "totalElements" : 3,
  "totalPages" : 1,
  "first" : true,
  "size" : 20,
  "number" : 0,
  "sort" : {
    "empty" : true,
    "sorted" : false,
    "unsorted" : true
  },
  "numberOfElements" : 3,
  "empty" : false
}
Table 640. response description
Path Type Description

name

String

reason markdown name

deleted

Boolean

is reason markdown deleted?

create

request
POST /api/v2/general/reason-markdowns HTTP/1.1

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

name

String

reason markdown name

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

deleted

Boolean

is reason markdown deleted?

Must not be null

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

name

String

reason markdown name

deleted

Boolean

is reason markdown deleted?

get

request
GET /api/v2/general/reason-markdowns?name=Test HTTP/1.1
Table 643. request description
Parameter Description

name

reason markdown name

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

name

String

reason markdown name

deleted

Boolean

is reason markdown deleted?

update

request
PUT /api/v2/general/reason-markdowns?name=Test HTTP/1.1

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

name

String

reason markdown name

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

deleted

Boolean

is reason markdown deleted?

Must not be null

Parameter Description

name

reason markdown name

response
HTTP/1.1 200 OK

delete

request
DELETE /api/v2/general/reason-markdowns?name=Test HTTP/1.1
Table 646. request description
Parameter Description

name

reason markdown name

response
HTTP/1.1 200 OK