- Under
conf/private/api_key/
, renameapi_key_original.json
toapi_key.json
and provide your OpenAI API key there. - Run
npm run start
ornpm run daemon
/
(ANY): Displays a welcome message.- Response :
- Example :
{ "data": "Welcome to Love Paws API" }
- Example :
- Response :
/ping
(ANY) : Returns "pong".- Response :
- Example :
{ "data": "pong" }
- Example :
- Response :
/inbox/send_message
(POST) : Returns a message for a conversation.- Request :
- Parameters :
- "recipient" : The name you want the cat who replies to have; it can be anything.
- "msg" : The message to be sent to this cat.
- Example :
{ "data" : { "recipient" : "Felix", "msg" : "Hello there!" }, "metadata" : {} }
- Parameters :
- Response :
- Example :
{ "data": { "msg": "Meow! How are you?" }, "metadata": {} }
- Example :
- Request :