API Testing Practice Hub

Practice API automation with simulated REST endpoints perfect for testing your automation skills

5 API Endpoints
4 HTTP Methods
100% Free to Use

API Testing Endpoints

Practice API automation with these simulated REST endpoints. Click "Test Endpoint" buttons to see mock responses perfect for automation testing. Base URL: https://dotesthere.com/api (simulated)

GET /api/users

Fetch a list of users with pagination

Example Request

curl -X GET "https://dotesthere.com/api/users?page=1&limit=10"

Response

{
  "page": 1,
  "per_page": 10,
  "total": 12,
  "total_pages": 2,
  "data": [
    {
      "id": 1,
      "email": "ankur.automation@dotesthere.com",
      "first_name": "George",
      "last_name": "Bluth",
      "avatar": "https://dotesthere.com/img/faces/1-image.jpg"
    }
  ]
}
GET /api/users/{id}

Fetch a single user by ID

Example Request

curl -X GET "https://dotesthere.com/api/users/1"

Response

{
  "data": {
    "id": 1,
    "email": "ankur.automation@dotesthere.com",
    "first_name": "Ankur",
    "last_name": "Automation",
    "avatar": "https://dotesthere.com/img/faces/1-image.jpg"
  }
}
POST /api/users

Create a new user

Example Request

curl -X POST "https://dotesthere.com/api/users" \
-H "Content-Type: application/json" \
-d '{"name": "Ankur Malviya", "job": "Developer"}'

Response

{
  "name": "Ankur Malviya",
  "job": "Test Engineer",
  "id": "123",
  "createdAt": "2023-01-01T12:00:00.000Z"
}
PUT /api/users/{id}

Update an existing user

Example Request

curl -X PUT "https://dotesthere.com/api/users/1" \
-H "Content-Type: application/json" \
-d '{"name": "John Updated", "job": "Senior Developer"}'

Response

{
  "name": "John Updated",
  "job": "Senior Developer",
  "updatedAt": "2023-01-01T12:00:00.000Z"
}
DELETE /api/users/{id}

Delete a user by ID

Example Request

curl -X DELETE "https://dotesthere.com/api/users/1"

Response

Status: 204 No Content