- Home
- Resources
- Config (perspective) admin API
WS for handling perspective sets, perspectives and perspective members in
context of specified system configuration draft.
POST /admin/config/perspectiveset/{configurationId}
Add new perspective set in specified system configuration draft.
Example of request:
{"name":"name of the set","description":"description of the set"}
Request Parameters
name |
type |
description |
default |
constraints |
configurationId |
path |
System configuration draft identifier. |
|
long |
Request Body
media type |
data type |
description |
application/json |
object
|
The specification of group that has to be added. |
Response Body
media type |
data type |
description |
application/json |
object
|
JSON with id, name and description of created perspective set
{"id":"created set id","name":"name of the set","description":"description of the set"}
* |
GET /admin/config/perspectiveset/json/{configurationId}
Get perspective sets in given system configuration draft.
Request Parameters
name |
type |
description |
default |
constraints |
configurationId |
path |
System configuration draft identifier. |
|
long |
Response Body
media type |
data type |
description |
application/json |
object
|
JSON Response with perspectives
Example of response:
{"list":[{"id":"2","description":"Grid perspective set","name":"Grid"},{"id":"3","description":"Second version of grid perspective set","name":"Second grid"},{"id":"1","description":"Main hierarchy perspective set","name":"Main hierarchy"}]}
|
DELETE /admin/config/perspectiveset/{configurationId}/{setFormatId}
Remove perspective set for specified system configuration draft.
Request Parameters
name |
type |
description |
default |
constraints |
configurationId |
path |
System configuration draft identifier |
|
long |
setFormatId |
path |
|
|
long |
Response Body
media type |
data type |
description |
application/json |
object
|
JSON Response with information, whether the removing has or has not
been succeeded. |
PUT /admin/config/perspectiveset/{configurationId}/{setFormatId}
Update perspective set in specified system configuration draft.
Example of request:
{"name":"name of the set","description":"description of the set"}
Request Parameters
name |
type |
description |
default |
constraints |
configurationId |
path |
|
|
long |
setFormatId |
path |
|
|
long |
Request Body
media type |
data type |
description |
application/json |
object
|
The id of set that has to be updated. |
Response Body
media type |
data type |
description |
application/json |
object
|
JSON Response with information, whether the updating has or has not
been succeeded. |
POST /admin/config/perspectiveset/members/remove/{configurationId}
Remove perspective member from perspective in specified system
configuration draft.
Request Parameters
name |
type |
description |
default |
constraints |
configurationId |
path |
System configuration draft identifier |
|
long |
Request Body
media type |
data type |
description |
application/json |
string
|
list of perspective members id's to be deleted |
Response Body
media type |
data type |
description |
application/json |
object
|
JSON with information whether request was successful |
POST /admin/config/perspectiveset/members/update/{configurationId}
Update perspective member in specified system configuration draft.
Request Parameters
name |
type |
description |
default |
constraints |
configurationId |
path |
System configuration draft identifier |
|
long |
Request Body
media type |
data type |
description |
application/json |
string
|
list of perspective members to be updated |
Response Body
media type |
data type |
description |
application/json |
object
|
JSON with information whether request was successful |
POST /admin/config/perspectiveset/relatives/remove/{configurationId}
Remove perspective from set in given system configuration draft. Please
note that each perspective has unique id (we do not need to specify set to
delete from).
Request Parameters
name |
type |
description |
default |
constraints |
configurationId |
path |
System configuration draft identifier |
|
long |
Request Body
media type |
data type |
description |
*/* |
string
|
id of perspectives to be deleted
Example of request:
{"list":[{"id":"4280"}]}
|
Response Body
media type |
data type |
description |
application/json |
object
|
JSON with information whether request was successful |
POST /admin/config/perspectiveset/members/add/{configurationId}/{perspectiveId}
Add members (classes) to perspective in specified system configuration
draft.
Request Parameters
name |
type |
description |
default |
constraints |
configurationId |
path |
System configuration draft identifier |
|
long |
perspectiveId |
path |
The unique identifier of perspective |
|
long |
Request Body
media type |
data type |
description |
application/json |
string
|
id's of classes to be added as perspective members
Example of request:
{"list":[{"id":"11"},{"id":"12"}]}
|
Response Body
media type |
data type |
description |
application/json |
object
|
JSON with information whether request was successful |
GET /admin/config/perspectiveset/members/json/{configurationId}/{perspectiveId}
Get members of specified perspective in specified system configuration
draft.
Request Parameters
name |
type |
description |
default |
constraints |
configurationId |
path |
System configuration draft identifier |
|
long |
perspectiveId |
path |
The unique identifier of perspective |
|
long |
Response Body
media type |
data type |
description |
application/json |
object
|
JSON Response with description of perspective
Example of response:
{"list":[{"classId":"10","classLabel":"Faciliteter"},{"classId":"11","classLabel":"Fastighet"},{"classId":"13","classLabel":"Plan"},{"classId":"12","classLabel":"Hus"}]}
|
GET /admin/config/perspectiveset/perspectives/json/{configurationId}/{perspectiveSetId}
Get perspectives from perspective set in given system configuration draft.
Request Parameters
name |
type |
description |
default |
constraints |
configurationId |
path |
System configuration draft identifier |
|
long |
perspectiveSetId |
path |
The unique identifier of perspective |
|
long |
Response Body
media type |
data type |
description |
application/json |
object
|
JSON Response with description of perspective
Example of response:
{"list":[{"classId":"10","classLabel":"Faciliteter"},{"classId":"11","classLabel":"Fastighet"},{"classId":"13","classLabel":"Plan"},{"classId":"12","classLabel":"Hus"}]}
|
POST /admin/config/perspectiveset/relatives/add/{configurationId}/{perspectiveSetId}
Add perspectives to set in specified system configuration draft.
Request Parameters
name |
type |
description |
default |
constraints |
configurationId |
path |
System configuration draft identifier |
|
long |
perspectiveSetId |
path |
The unique identifier of perspective |
|
long |
Request Body
media type |
data type |
description |
*/* |
string
|
id of classes to be added to perspective set
Example of request:
{"list":[{"id":"14"},{"id":"11"}]}
|
Response Body
media type |
data type |
description |
application/json |
object
|
JSON with information whether request was successful |