System parameters handling WS
Get list of configurations for external presentations
media type | data type | description |
---|---|---|
application/json | object (JSON) | JSON Response with list of configurations for external presentations
Example of response:
{"list":[{"id":"1","description":"configuration description","parentClass":"parent class name","domainName":"Domain name"}]}
|
GET /api/admin/externalpresentations
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
...
Add configuration for external presentation.
Example of request:
{"description":"Description","parentClassLabel":"Parent Class Label","parentClassId":10,"domainId":1,"domainName":"Domain Name","url4GetQuerries":"https://host/api/v2/floor/function/getpossiblequeries","url4QueryCall":"https://host/api/v2/floor/function/ExecuteQuery?cadkey={GUID}&queryid={queryId}&format=fmaccess"}
media type | data type | description |
---|---|---|
application/json | string (JSON) | The specification of configuration that has to be added. |
media type | data type | description |
---|---|---|
application/json | HdcSuccessWithId (JSON) | JSON with added configuration ID.
{"id":"1","success":true}
|
POST /api/admin/externalpresentations
Content-Type: application/json
Accept: application/json
...
HTTP/1.1 201 Created
Content-Type: application/json
{ }
Delete configuration of external presentation.
name | type | description | constraints |
---|---|---|---|
configId | path | ID of configuration to be deleted | long |
media type | data type | description |
---|---|---|
application/json | HdcSuccessTO (JSON) | JSON with information about operation's result |
DELETE /api/admin/externalpresentations/{configId}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 204 No Content
Content-Type: application/json
{ }
Get configuration for external presentation by its id
name | type | description | constraints |
---|---|---|---|
configId | path | long |
media type | data type | description |
---|---|---|
application/json | ExternalPresentationConfig (JSON) | JSON Response with configuration for external presentation by its id
Example of response:
{"id":1,"description":"Description","parentClassLabel":"Parent Class Label","parentClassId":10,"domainId":1,"domainName":"Domain Name","url4GetQuerries":"https://host/api/v2/floor/function/getpossiblequeries","url4QueryCall":"https://host/api/v2/floor/function/ExecuteQuery?cadkey={GUID}&queryid={queryId}&format=fmaccess"}
|
GET /api/admin/externalpresentations/{configId}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : 12345,
"parentClassId" : 12345,
"password" : "...",
"userName" : "...",
"childClassId" : 12345,
"domainName" : "...",
"parentClassLabel" : "...",
"domainId" : 12345,
"childClassLabel" : "...",
"url4QueryCall" : "...",
"childClassName" : "...",
"description" : "...",
"url4GetQueries" : "..."
}
Update configuration for external presentation.
Example of request:
{"id":1,"description":"Description","parentClassLabel":"Parent Class Label","parentClassId":10,"domainId":1,"domainName":"Domain Name","url4GetQuerries":"https://host/api/v2/floor/function/getpossiblequeries","url4QueryCall":"https://host/api/v2/floor/function/ExecuteQuery?cadkey={GUID}&queryid={queryId}&format=fmaccess"}
name | type | description | constraints |
---|---|---|---|
configId | path | long |
media type | data type | description |
---|---|---|
application/json | string (JSON) | The specification of configuration that has to be updated. |
media type | data type | description |
---|---|---|
application/json | HdcSuccessTO (JSON) | JSON with information about operation's result |
PUT /api/admin/externalpresentations/{configId}
Content-Type: application/json
Accept: application/json
...
HTTP/1.1 204 No Content
Content-Type: application/json
{ }