Recipe purpose

list

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

name

String

recipe purpose name

deleted

Boolean

is recipe purpose deleted?

create

request
POST /api/v2/doctor-dictionary/recipe-purposes HTTP/1.1

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

name

String

recipe purpose name

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

deleted

Boolean

is recipe purpose deleted?

Must not be null

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

name

String

recipe purpose name

deleted

Boolean

is recipe purpose deleted?

get

request
GET /api/v2/doctor-dictionary/recipe-purposes?name=Test HTTP/1.1
Table 531. request description
Parameter Description

name

recipe purpose name

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

name

String

recipe purpose name

deleted

Boolean

is recipe purpose deleted?

update

request
PUT /api/v2/doctor-dictionary/recipe-purposes?name=Test HTTP/1.1

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

name

String

recipe purpose name

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

deleted

Boolean

is recipe purpose deleted?

Must not be null

Parameter Description

name

recipe purpose name

response
HTTP/1.1 200 OK

delete

request
DELETE /api/v2/doctor-dictionary/recipe-purposes?name=Test HTTP/1.1
Table 534. request description
Parameter Description

name

recipe purpose name

response
HTTP/1.1 200 OK