This API provides a comprehensive suite of endpoints for managing users, handling file uploads, performing image operations, and facilitating dynamic content rendering. The endpoints are modularized into distinct Flask Blueprints to ensure a clean and organized structure.
https://jawa.selfmade.technology
Registers a new user with the platform.
username
(string): A unique username for the user.password
(string): A secure password for the account.name
(string): Full name of the user.email
(string): The user's email address.recaptcha_response
(string): Token from Google reCAPTCHA.302 Redirect
: Redirects to the OTP verification page.400 Bad Request
: Returned if parameters are invalid or missing.Authenticates the user, starting a new session.
username
(string): The user's login username.password
(string): The user's login password.recaptcha_response
(string): Token from Google reCAPTCHA.302 Redirect
: Redirects to the user dashboard.401 Unauthorized
: If credentials are incorrect.Logs out the authenticated user, terminating their session.
302 Redirect
: Redirects to the home page.Displays the file upload form.
Processes the file upload and saves metadata to the database.
file
(file): The file to be uploaded.text
(string): Descriptive text related to the file.302 Redirect
: Redirects to the dashboard page.400 Bad Request
: If the file type is unsupported.Retrieves the specified image file from the server.
filename
(string): The name of the image file.200 OK
: The image file is returned.404 Not Found
: The specified file does not exist.Deletes the specified image file from the database.
imageid
(string): The identifier of the image to be deleted.200 OK
: If the image is deleted successfully.401 Unauthorized
: If the user is not authorized to delete the image.Likes or unlikes the specified image file.
imageid
(string): The identifier of the image to be liked/unliked.200 OK
: If the operation is successful.401 Unauthorized
: If the user is not authenticated.Retrieves all images along with their metadata.
200 OK
: JSON array containing image metadata.Updates the chat with a new message.
message
(string): The content of the chat message.200 OK
: If the message is successfully updated.Fetches all chat messages from the server.
200 OK
: Returns a JSON array of chat messages.Executes a specified Linux command on the server.
cmds
(string): The command string to be executed.200 OK
: Returns the command's output.400 Bad Request
: If the command is invalid or unauthorized.Provides information on current CPU usage and the number of active users.
200 OK
: JSON object containing CPU usage and user count.Displays the upload form for mobile number files.
Processes the uploaded file, segregating mobile numbers.
file
(file): File containing mobile numbers.302 Redirect
: Redirects to the download page for segregated files.Displays the download page for segregated mobile numbers.
Allows the user to download the specified file.
filename
(string): Name of the file to be downloaded.200 OK
: The file is served for download.404 Not Found
: If the file is not found.Compares two uploaded files and removes duplicates from the second file.
file1
(file): The first file to compare.file2
(file): The second file to compare.200 OK
: Returns the modified version of the second file.Counts the total number of mobile numbers in the uploaded file.
file
(file): File containing mobile numbers.200 OK
: Returns the total count of numbers.500 Internal Server Error
: If the file cannot be processed.Displays the home page of the API.
Displays the resume page.
Displays the projects page.
Displays the contact page.
Displays the login page for users.
Displays the secret page.
Displays the OTP verification page.
Displays the registration page.
Displays the drawing page.
Redirects to the CCTV verification page.
Displays the CCTV page.
Displays the user dashboard with data fetched from the API.
Displays the chatbox interface with live chat data.
401 Unauthorized: Returned when authentication is required but not provided.
404 Not Found: Returned when the requested resource does not exist.
500 Internal Server Error: Returned when there is an error on the server side.
This API provides a comprehensive set of functionalities for user management, file operations, and system management, making it suitable for a wide variety of applications. Ensure that all endpoints requiring authentication are properly secured and validate all inputs to maintain the integrity of the system.