API Documentation
A comprehensive REST API for managing users, products, and Movies. Version 2.0
Introduction
APIRequest.in is a free platform designed to help students and developers practice API requests. It offers simple dummy APIs with user, movie, and product data to understand real-world API usage.
Base URL: https://apirequest.in/api/
Format: All responses are returned in JSON format.
Users
GET /api/user
Retrieve a list of all users.
Query Parameters
Response (200 OK)
{
"id": "usr_123abc",
"name": "John Doe",
"email": "john@example.com",
"created_at": "2024-01-15T10:30:00Z",
"status": "active"
}
POST api/user
Create a new user.
Request Body
{
"id": "usr_123abc",
"name": "John Doe",
"email": "john@example.com",
"created_at": "2024-01-15T10:30:00Z",
"status": "active"
}
POST api/login
Login new user.
Request Body
{
"email": "test@gmail.com",
"password": "test",
}
Response
{
"message": " SuccessFully Logged in"
}
GET /api/user/:id
Retrieve a specific user by ID.
Response (200 OK)
{
"id": "usr_123abc",
"name": "John Doe",
"email": "john@example.com",
"role": "admin",
"created_at": "2024-01-15T10:30:00Z",
"last_login": "2024-12-14T09:20:00Z"
}
DELETE /users/:id
Delete a user by ID.