Accessory model

list

request
GET /api/v2/doctor-dictionary/models/list HTTP/1.1
Parameter Description

name

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

pageable

Pageable description

response
{
  "content" : [ {
    "name" : "+1,25 Оптимист V42173-01 РЦ 62",
    "deleted" : false
  }, {
    "name" : "+1,5 Оптимист V42173-01 РЦ 62",
    "deleted" : false
  }, {
    "name" : "+2,0 Оптимист V42173-02 РЦ 62",
    "deleted" : false
  }, {
    "name" : "+2,5 Оптимист V42173-02 РЦ 62",
    "deleted" : false
  }, {
    "name" : "-",
    "deleted" : false
  }, {
    "name" : "100 mm",
    "deleted" : false
  }, {
    "name" : "10000",
    "deleted" : false
  }, {
    "name" : "15000",
    "deleted" : false
  }, {
    "name" : "1501",
    "deleted" : false
  }, {
    "name" : "1610",
    "deleted" : false
  }, {
    "name" : "1615",
    "deleted" : false
  }, {
    "name" : "1702",
    "deleted" : false
  }, {
    "name" : "1705",
    "deleted" : false
  }, {
    "name" : "200",
    "deleted" : false
  }, {
    "name" : "3-в-1 с подсветкой",
    "deleted" : false
  }, {
    "name" : "300",
    "deleted" : false
  }, {
    "name" : "3000",
    "deleted" : false
  }, {
    "name" : "350",
    "deleted" : false
  }, {
    "name" : "400",
    "deleted" : false
  }, {
    "name" : "450",
    "deleted" : false
  } ],
  "pageable" : {
    "pageNumber" : 0,
    "pageSize" : 20,
    "sort" : {
      "empty" : true,
      "sorted" : false,
      "unsorted" : true
    },
    "offset" : 0,
    "paged" : true,
    "unpaged" : false
  },
  "last" : false,
  "totalElements" : 197,
  "totalPages" : 10,
  "first" : true,
  "size" : 20,
  "number" : 0,
  "sort" : {
    "empty" : true,
    "sorted" : false,
    "unsorted" : true
  },
  "numberOfElements" : 20,
  "empty" : false
}
Table 415. response description
Path Type Description

name

String

accessory model name

deleted

Boolean

is accessory model deleted?

create

request
POST /api/v2/doctor-dictionary/models HTTP/1.1

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

name

String

accessory model name

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

deleted

Boolean

is accessory model deleted?

Must not be null

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

name

String

accessory model name

deleted

Boolean

is accessory model deleted?

get

request
GET /api/v2/doctor-dictionary/models?name=Test HTTP/1.1
Table 418. request description
Parameter Description

name

accessory model name

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

name

String

accessory model name

deleted

Boolean

is accessory model deleted?

update

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

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

name

String

accessory model name

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

deleted

Boolean

is accessory model deleted?

Must not be null

Parameter Description

name

accessory model name

response
HTTP/1.1 200 OK

delete

request
DELETE /api/v2/doctor-dictionary/models?name=Test HTTP/1.1
Table 421. request description
Parameter Description

name

accessory model name

response
HTTP/1.1 200 OK