harbor run -t openthoughts/tasktrove-mix-h6-test-quality-top25-mix-h6-test-quality-0650harbor download openthoughts/tasktrove-mix-h6-test-quality-top25-mix-h6-test-quality-0650Build a small HTTP JSON API server (Flask-based) that implements user registration, token-based authentication, and basic forum/thread/post functionality so that the provided tests can exercise it. Place the application code under /app/ (for example /app/main.py) and make the server start on 0.0.0.0:5000 when run.
Required behavior, endpoints, inputs and outputs
General
Users
POST /api/v1/users/create
POST /api/v1/tokens
GET /api/v1/users/<user_id>
PUT /api/v1/users/<user_id>
Forums and threads
POST /api/v1/forums/create
POST /api/v1/threads/create
Posts
POST /api/v1/posts/create
GET /api/v1/users/<user_id>/posts
Authentication/Authorization details
Implementation details and function/route names (suggested)
Notes