Open Issues Need Help
View All on GitHub [Backend/feature] Create habit model and POST /api/habits endpoint about 1 month ago
AI Summary: Create a backend API endpoint (`POST /api/habits`) to handle the creation of new habit entries. The endpoint should accept a JSON payload with habit details (name, description, frequency, start date, and active status), validate the input, associate the habit with the authenticated user, store it in the database, and return appropriate HTTP responses (including error handling). Unit tests are required.
Complexity:
4/5
enhancement good first issue