MakeDecision
POST
route : https://localhost:8080/MakeDecision
Protected By the Middleware
Description
Request Schema: A JSON object containing a
"message"key is sent to an endpoint. In this example, the message is"Hey How are you ?".Response Format: The server returns a JSON response consisting of a
"message"and a"status". The message informs the user that the response is generated by a virtual assistant, and the status code200indicates a successful request.CURL Command: This command is used to send the JSON request to the
MakeDecisionendpoint running on a local server. It specifies the content type as JSON and includes an authorization header for security, with sensitive information redacted for privacy.
body :
{
"message": "Hey How are you ?"
}return :
{
"message": "Hello! I'm just a virtual assistant, so I don't have feelings the way humans do. But I'm here to help you with anything you need. How can I assist you today?",
"status": 200
}CURL :
curl --location 'localhost:8080/MakeDecision' \
--header 'Content-Type: application/json' \
--header 'Authorization: ******' \
--data '{
"message": "Hey How are you ?"
}'Last updated