You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tore Nestenius edited this page Dec 22, 2024
·
4 revisions
REST API
Overview
This tool provides a set of REST API endpoints explicitly designed for testing.
Purpose
The aim is to offer a simple REST API that returns test data, which can be helpful in a variety of testing scenarios.
Endpoints
The available endpoints include:
GET /api/customers
Returns a list of customers in JSON format.
GET /api/customers/{id}
Returns a specific customer (ID range: 1–100) in JSON format.
GET /api/customersSlow/{id}
Returns a specific customer (ID range: 1–100) in JSON format. However, customer with ID=10 takes 1 second to execute.
All other takes a random time with a distribution centered around 50ms.
GET /api/echo
Returns the received request headers in JSON format.
GET /api/time
Returns the current server time as a string.
GET /api/cpu
Start consuming max CPU for 1 minute
GET /api/memory
Start consuming as much memory as possible for 1 minute.