- Endpoint is a POST api https://hng-backend-stage2-task.vercel.app/compute
- Backend is built with expressJs and openAI
- It takes this inputs
{
"operation_type": "addition",
"x": 2,
"y": 22
}
or
{
"operation_type": "What is 2 + 22 please",
"x": 0,
"y": 0
}
- operation_type can also be a text e.g Hey what's 2 + 22 ?
- It sends response of status 200 as shown below
{
"slackUsername": "Silver",
"result": 24,
"operation_type": "addition"
}