...
User details for authentication are stored in the MongoDB database is the following format. Either a password or a certificate (in binary form) is stored in this structure depending on whether the user chooses to use PKI or HTTP basic auth to authenticate users.
Code Block |
---|
title | user.json |
---|
collapse | true |
---|
|
{
"userID": "Musha_OpenMRS",
"name": "OpenMRS Mush instance",
"roles": [ "OpenMRS_PoC", "PoC" ],
"password": "",
"cert": ""
} |
...
Code Block |
---|
title | transaction.json | collapse | true |
---|
|
{
"transactionId": "123",
"status": "Processing|Failed|Completed",
"userId": "Musha_OpenMRS",
"request": {
"path": "/api/test",
"headers": [
{ "header1": "value1" },
{ "header2": "value2" }
],
"requestParams": [
{ "param1": "value1" },
{ "param2": "value2" }
],
"body": "<HTTP body>",
"method": "POST",
"timestamp": "<ISO 8601>"
},
"response": {
"status": 201,
"body": "<HTTP body>",
"headers": [
{ "header1": "value1" },
{ "header2": "value2" }
],
"timestamp": "<ISO 8601>"
},
"routes": [
{
"name": "<route name>"
// Same structure as above
"request": { ... },
"response": { ... }
}
]
"orchestrations": [
{
"name": "<orchestration name>"
// Same structure as above
"request": { ... },
"response": { ... }
}
]
} |
...
Code Block |
---|
title | channels.json | collapse | true |
---|
|
[
{
"name": "Some Registry Channel",
"urlPattern": "test/sample/.+",
"allow": "*",
"deny": [ "Mallet" ],
"routes": [
{
"name": "Some Registry",
"path": "some/other/path" // this is optional if left out original path is used
"host": "localhost",
"port": 8080
}
]
},
{
"name": "Some Registry Channel",
"urlPattern": "test/sample2/.+/test2",
"allow": [ "Alice","Bob" ],
"routes": [
{
"name": "Some Registry",
"host": "localhost",
"port": 8080,
"primary": true
},
{
"name": "Logger",
"host": "log-host",
"port": 4789
}
]
}
] |
...