Fabric provides out-of-the-box web services/APIs.
All API accesses are over HTTPS, and are accessed from the Fabric URL endpoint https://<Domain Name>:<PORT>
POST /api/fabric-commands
Run either a fabric command or a set of fabric commands.
Examples:
Request Body
{
"commands": [
{
"command":"list ?",
"params":['lut']
}
]
}
Response Body
{
"results": [
{
"resultSet": {
"columns": [
"LU_NAME"
],
"rows": [
[
"Customer"
],
[
"CRM"
]
]
}
}
]
}
Request Body
{
"commands": [
{
"command":"ref_sync LU_NAME=? TABLES=?;",
"params":['CRM','ALL']
}
]
}
Response Body
{
"results": [
{
"resultSet": {
"columns": [
"Table name"
],
"rows": [
[
"lion.ref_USA_CoV19_cases_Oct2020"
]
]
},
"duration": 75
}
]
}
POST /api/authenticate
Generate a JWT digitally signed cookie for Web-Services calls on the same session. Consequently, future Fabric Web-services calls will not require a token as a parameter.
The web service expects either an API Key to be sent in the request body or username and password, as follows:
Authenticate by apikey
Request Body:
{
"apikey": "string"
}
Authenticate by user/password
Request Body:
{
"username": "string",
"password": "string",
}
Indicates whether Fabric is up and running.
GET /api/isAlive
Example:
https://localhost:3213/api/isAlive
Fabric provides out-of-the-box web services/APIs.
All API accesses are over HTTPS, and are accessed from the Fabric URL endpoint https://<Domain Name>:<PORT>
POST /api/fabric-commands
Run either a fabric command or a set of fabric commands.
Examples:
Request Body
{
"commands": [
{
"command":"list ?",
"params":['lut']
}
]
}
Response Body
{
"results": [
{
"resultSet": {
"columns": [
"LU_NAME"
],
"rows": [
[
"Customer"
],
[
"CRM"
]
]
}
}
]
}
Request Body
{
"commands": [
{
"command":"ref_sync LU_NAME=? TABLES=?;",
"params":['CRM','ALL']
}
]
}
Response Body
{
"results": [
{
"resultSet": {
"columns": [
"Table name"
],
"rows": [
[
"lion.ref_USA_CoV19_cases_Oct2020"
]
]
},
"duration": 75
}
]
}
POST /api/authenticate
Generate a JWT digitally signed cookie for Web-Services calls on the same session. Consequently, future Fabric Web-services calls will not require a token as a parameter.
The web service expects either an API Key to be sent in the request body or username and password, as follows:
Authenticate by apikey
Request Body:
{
"apikey": "string"
}
Authenticate by user/password
Request Body:
{
"username": "string",
"password": "string",
}
Indicates whether Fabric is up and running.
GET /api/isAlive
Example:
https://localhost:3213/api/isAlive