Contact lenses wearing period
list
GET /api/v2/contact-lenses/wearing-periods/list HTTP/1.1
Parameter | Description |
---|---|
|
String to search by name. EX: ?name=test |
|
{
"content" : [ {
"name" : "1 день",
"deleted" : false
}, {
"name" : "1 месяц",
"deleted" : false
}, {
"name" : "2 недели",
"deleted" : false
}, {
"name" : "3 месяца",
"deleted" : false
}, {
"name" : "30 дней",
"deleted" : false
}, {
"name" : "6-12 месяцев",
"deleted" : false
}, {
"name" : "90 дней",
"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
}
Path | Type | Description |
---|---|---|
|
|
contact lenses wearing period name |
|
|
is contact lenses wearing period deleted? |
labels
GET /api/v2/contact-lenses/wearing-periods/labels HTTP/1.1
[ {
"name" : "1 день",
"deleted" : false
}, {
"name" : "1 месяц",
"deleted" : false
}, {
"name" : "2 недели",
"deleted" : false
}, {
"name" : "3 месяца",
"deleted" : false
}, {
"name" : "30 дней",
"deleted" : false
}, {
"name" : "6-12 месяцев",
"deleted" : false
}, {
"name" : "90 дней",
"deleted" : false
}, {
"name" : "не указано",
"deleted" : false
} ]
Path | Type | Description |
---|---|---|
|
|
contact lenses wearing period name |
|
|
is contact lenses wearing period deleted? |
create
POST /api/v2/contact-lenses/wearing-periods HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
contact lenses wearing period name |
Must not be blank. |
deleted |
Boolean |
is contact lenses wearing period deleted? |
Must not be null |
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
contact lenses wearing period name |
|
|
is contact lenses wearing period deleted? |
get
GET /api/v2/contact-lenses/wearing-periods?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
contact lenses wearing period name |
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
contact lenses wearing period name |
|
|
is contact lenses wearing period deleted? |
update
PUT /api/v2/contact-lenses/wearing-periods?name=Test HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
contact lenses wearing period name |
Must not be blank. |
deleted |
Boolean |
is contact lenses wearing period deleted? |
Must not be null |
Parameter | Description |
---|---|
|
contact lenses wearing period name |
HTTP/1.1 200 OK
delete
DELETE /api/v2/contact-lenses/wearing-periods?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
contact lenses wearing period name |
HTTP/1.1 200 OK