Products
REST| Method | Path | Description |
|---|---|---|
| GET | /products | Paginated list — query params |
| POST PUT PATCH | /products/list | Paginated list — page/offset/limit in body |
| POST | /products | Create product (fake) |
| GET | /products/{id} | Get one product |
| PUT | /products/{id} | Full update (fake) |
| PATCH | /products/{id} | Partial update (fake) |
| DELETE | /products/{id} | Delete (fake) |
Orders
REST| Method | Path | Description |
|---|---|---|
| GET | /orders | Paginated list — query params |
| POST PUT PATCH | /orders/list | Paginated list — page/offset/limit in body |
| POST | /orders | Create order (fake) |
| GET | /orders/{id} | Get one order |
| PUT | /orders/{id} | Full update (fake) |
| PATCH | /orders/{id} | Partial update (fake) |
| DELETE | /orders/{id} | Delete (fake) |
Pagination
All endpointsnext-link
links.next URL in every paginated response bodynext-link-header
Link: <url>; rel="next" response headerquery-page-parameter
?page=N&limit=N — Alumio increments pagequery-offset-parameter
?offset=N&limit=N — Alumio increments offsetbody-page-parameterPOST/PUT/PATCH
/list with {"page":N} in bodyDefault page size10 items. Override with
?limit=N or "limit":N in bodyFailure simulation
All endpointsHow to triggerAppend
?fail=<status_code> to any requestExamples
?fail=500 ?fail=422 ?fail=429 ?fail=503REST formatJSON
{"error":{"code":N,"message":"..."}}GraphQL formatJSON
{"errors":[...]}SOAP formatSOAP Fault envelope with
soap:Server or soap:Client fault codeGraphQL
GraphQL| Method | Path | Description |
|---|---|---|
| POST | /graphql |
Queries: products, product, orders, orderMutations: createProduct, updateProduct, deleteProduct,
createOrder, updateOrder, deleteOrderPagination via page, offset, limit arguments.
Responses include links.next and Link header.
|
Example request body — POST /graphql
{
"query": "query GetProducts($page: Int, $limit: Int) { products(page: $page, limit: $limit) { data { id name price category } links { next } meta { total page limit } } }",
"variables": { "page": 1, "limit": 10 }
}
SOAP
SOAP 1.1| Method | Path | Description |
|---|---|---|
| GET | /soap?wsdl | WSDL definition |
| POST | /soap |
GetProducts, GetProduct, CreateProduct, UpdateProduct, DeleteProductGetOrders, GetOrder, CreateOrder, UpdateOrder, DeleteOrder
|
Example request body — POST /soap (Content-Type: text/xml)
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tns="http://alumio.com/mockapi/">
<soap:Body>
<tns:GetProducts>
<tns:Page>1</tns:Page>
<tns:Limit>10</tns:Limit>
</tns:GetProducts>
</soap:Body>
</soap:Envelope>