Doctor: Allergic disease
list
request
GET /api/v2/doctor-dictionary/allergic-diseases/list HTTP/1.1
Parameter | Description |
---|---|
|
String to search by name. EX: ?name=test |
|
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
}
Path | Type | Description |
---|---|---|
|
|
allergic disease name |
|
|
is allergic disease deleted? |
create
request
POST /api/v2/doctor-dictionary/allergic-diseases HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
allergic disease name |
Must not be blank. |
deleted |
Boolean |
is allergic disease deleted? |
Must not be null |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
allergic disease name |
|
|
is allergic disease deleted? |
get
request
GET /api/v2/doctor-dictionary/allergic-diseases?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
allergic disease name |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
allergic disease name |
|
|
is allergic disease deleted? |
update
request
PUT /api/v2/doctor-dictionary/allergic-diseases?name=Test HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
allergic disease name |
Must not be blank. |
deleted |
Boolean |
is allergic disease deleted? |
Must not be null |
Parameter | Description |
---|---|
|
allergic disease name |
response
HTTP/1.1 200 OK
delete
request
DELETE /api/v2/doctor-dictionary/allergic-diseases?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
allergic disease name |
response
HTTP/1.1 200 OK