Information source
list
request
GET /api/v2/general/information-source/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 |
---|---|---|
|
|
information source name |
|
|
is information source deleted? |
create
request
POST /api/v2/general/information-source HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
information source name |
Must not be blank. |
deleted |
Boolean |
is information source deleted? |
Must not be null |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
information source name |
|
|
is information source deleted? |
get
request
GET /api/v2/general/information-source?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
information source name |
response
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description |
---|---|---|
|
|
information source name |
|
|
is information source deleted? |
update
request
PUT /api/v2/general/information-source?name=Test HTTP/1.1
{
"name" : "Test",
"deleted" : false
}
Path | Type | Description | Constraints |
---|---|---|---|
name |
String |
information source name |
Must not be blank. |
deleted |
Boolean |
is information source deleted? |
Must not be null |
Parameter | Description |
---|---|
|
information source name |
response
HTTP/1.1 200 OK
delete
request
DELETE /api/v2/general/information-source?name=Test HTTP/1.1
Parameter | Description |
---|---|
|
information source name |
response
HTTP/1.1 200 OK