API Spec
Logs the event to the database. See Swagger docs for more information.
Logs the event to the database.
Request Body schema: application/json
data required | object |
event required | string |
timestamp required | number |
Responses
Request samples
- Payload
Content type
application/json
{- "data": {
- "userID": 12345
}, - "event": "User logged in",
- "timestamp": 1708401940
}
Generate a suggestion based on the provided prompt. See Swagger docs for more information.
Sends a prompt to the locally running Ollama model and returns the generated suggestion.
Request Body schema: application/json
prompt required | string |
Responses
Request samples
- Payload
Content type
application/json
{- "prompt": "def add(a, b):"
}
Response samples
- 200
- 400
- 500
Content type
application/json
{- "suggestions": [
- "return a + b"
]
}
Create a new user with first name, last name, email, and password.
Registers a new user with first name, last name, email, and password.
Request Body schema: application/json
email required | string |
first_name required | string |
last_name required | string |
password required | string |
Responses
Request samples
- Payload
Content type
application/json
{- "email": "jaime@example.com",
- "first_name": "Jaime",
- "last_name": "Nguyen",
- "password": "password123"
}