REST + SOAP mock with the auth schemes ATS supports. Content negotiation via Accept: application/json|application/xml.
| Scheme | Value |
|---|---|
| Basic | atsuser / atspass |
| Bearer | ats-bearer-token |
| API key | header X-API-Key: ats-api-key-123 |
| OAuth2 (client_credentials) | client ats-client / ats-secret-2024 → POST /oauth/token |
GET /rest/public/whoami | no auth |
GET /rest/basic/whoami | Basic |
GET /rest/bearer/whoami | Bearer |
GET /rest/apikey/whoami | API key |
POST /oauth/token + GET /rest/oauth/protected | OAuth2 |
GET|POST|PUT|PATCH|DELETE /rest/products[/:id] | CRUD (JSON+XML) |
GET /rest/tree | arbre de 51 nœuds imbriqués (JSON+XML) |
ALL /rest/echo, GET /rest/status/:code, /rest/delay/:ms, /rest/error | utilities |
WSDL: GET /soap?wsdl — CalculatorService: Add / Subtract / Multiply / Divide / GetTree (arbre de 51 nœuds).
GET /reset resets data.