This document provides a comprehensive overview of the available API endpoints for the User Management System. These endpoints enable functionalities such as user registration, login, email verification, password recovery, and token refresh.
The base URL for all API endpoints is:
http://<your-server-address>
Replace <your-server-address>
with the actual server address during implementation.
POST auth/register
Registers a new user in the system.
{
"username": "string",
"email": "string",
"password": "string"
}
GET auth/confirm/<token>
Verifies the user's email address using the provided token.
POST auth/forgot-password
Sends a password reset link to the user's registered email address.
{
"email": "string"
}
GET /dashboard
Fetches dashboard data for the authenticated user, including project information.
This endpoint requires a valid JWT token for authentication.
{
"dashboard": [
{
"project_name": "string",
"num_keywords": "integer",
"num_competitors": "integer"
}
]
}
GET /api/projects/<project_id>
Retrieves the details of a project for the authenticated user.
PUT /api/projects/<project_id>
Updates the details of a project for the authenticated user.
GET:
PUT:
POST /api/projects
Creates a new project for the authenticated user.
This endpoint requires a valid JWT token for authentication.
{
"name": "string",
"myket_url": "string",
"bazar_url": "string",
"googleplay_url": "string",
"keywords": ["string", "string"],
"competitors_urls": ["string", "string"]
}
{
"message": "Project created successfully",
"project_id": "integer"
}
POST auth/reset-password/<token>
Allows the user to reset their password using a reset token.
{
"password": "string"
}
POST auth/login
Authenticates a user and generates access and refresh tokens.
{
"email": "string",
"password": "string"
}
{
"access_token": "string",
"refresh_token": "string"
}
POST /refresh
Generates a new access token using the provided refresh token.
Authorization: Bearer <refresh_token>
{
"access_token": "string"
}
GET /health
Confirms the API is operational.
POST /bazaar_daily_stars
Retrieves the daily star rating changes for a specific app over a given number of days.
{
"url": "string", // Required: The unique URL of the app
"days": "integer" // Optional: Number of days to calculate changes (default: 30)
}
[
{
"app_name": "string",
"url": "string",
"date": "string",
"onestar_change": "integer",
"twostar_change": "integer",
"threestar_change": "integer",
"fourstar_change": "integer",
"fivestar_change": "integer"
}
]
For additional questions or support, please contact the backend development team.