The Community App backend is a RESTful API built with Express.js and TypeScript. It provides endpoints to manage user resources in a community application. The API uses Prisma ORM to interact with a PostgreSQL database.
Base URL
All API endpoints are prefixed with /api.
Error Handling
The API uses standard HTTP status codes to indicate the success or failure of requests:
200 OK - The request was successful
201 Created - A new resource was successfully created
400 Bad Request - The request was malformed or invalid
404 Not Found - The requested resource was not found
500 Internal Server Error - An error occurred on the server
All error responses include a JSON object with an error message.