This API provides endpoints for authentication, user progress data, and user posts.
POST /register- Register a new user.POST /login- User login.
GET /getAllData- Get all progress data.GET /:userId/getProgressData- Get progress data for a specific user.POST /:userId/progressData- Post progress data for a specific user.
GET /:userId/getPost- Get a specific post for a user.GET /userPost- Get all user posts.POST /:userId/userPost- Create a new user post.DELETE /post/:postId- Delete a specific post.PUT /post/:postId- Edit a specific post.
Fields:
username(String, required) - The username of the user.password(String, required) - The password of the user.email(String, required) - The email of the user.
Fields:
title(String, required) - The title of the post.content(String, required) - The content of the post.
Fields:
smoked(Number) - The number of times smoked.
- 404 Not Found - When a resource is not found.
- 500 Internal Server Error - When an unexpected error occurs.