A set of REST services for Azure QnAMaker APIs.These Binder APIs can be called from both Mobile and Web applications using the exposed endpoints. Dockerfile is included which would help containerize the service and also can be used seamlessly with Azure Container Registry or Docker Cloud or running locally. This would help in local testing and then hosting in Azure as Web API (or any other hosting services) No need to send API subscription details as part of the request (although that option is open); these secured information can be in Azure Web API layer and service can read from process.env dictionary Server host address is kept at 0.0.0.0 - so that it can be accesses from containerized hosting solutions like Docker Swarm
https://<host_server_details>
https://<host_server_details>/qnamaker/knowledgebases/all
https://<host_server_details>/qnamaker/knowledgebases/details/:kbId
https://<host_server_details>/qnamaker/endpointkeys
https://<host_server_details>/qnamaker/operations/:operationId
https://<host_server_details>/qnamaker/knowledgebase/download/:kbId/:environmentId
https://<host_server_details>/qnamaker/alterations
https://<host_server_details>/qnamaker/knowledgebase/create
{
"name": "QnA Maker New FAQ - 1109",
"qnaList": [
{
"id": 0,
"answer": "Feeling good!!!",
"source": "",
"questions": [
"Sports?"
],
"metadata": []
}
]
}
https://<host_server_details>/qnamaker/knowledgebase/createandpublish
{
"name": "QnA Maker New FAQ - 1708(2)",
"qnaList": [
{
"id": 0,
"answer": "Feeling good!!!",
"source": "",
"questions": [
"Any Venetarian options you have?"
],
"metadata": []
}
]
}
https://<host_server_details>/qnamaker/knowledgebase/:kbId/publish
https://<host_server_details>/qnamaker/knowledgebase/:kbId/update
{
"update":
{
"questions":
[
"Do you have any vegetarian options today?"
]
}
}
https://<host_server_details>/qnamaker/endpointkeys/:keyType/refresh
https://<host_server_details>/qnamaker/knowledgebases/:kbId/replace
{
"qnAList": [
{
"id": 0,
"answer": "string",
"source": "string",
"questions": [
"string"
],
"metadata": [
{
"name": "string",
"value": "string"
}
]
}
]
}
https://<host_server_details>/qnamaker/alterations/replace
{
"wordAlterations": [
{
"alterations": [
"qnamaker",
"qna maker"
]
},
{
"alterations": [
"botframework",
"bot framework"
]
},
{
"alterations": [
"webchat",
"web chat"
]
}
]
}
https://<host_server_details>/qnamaker/knowledgebases/delete/:kbId
https://<host_server_details>/qnamaker/knowledgebases/all/delete