Always onNothing is savedCORS: any originNo sign-up
Sample APIs you can call
A Star Wars API and a Petstore API for testing clients, code generators, API tools and tutorials.
Every API comes with its spec in OpenAPI 3.0 and 3.1 (JSON and YAML), Swagger 2.0, a Postman collection and an .http file.
Star Wars API
The SWAPI data: 82 people, 60 planets, 6 films, 37 species, 39 vehicles and 36 starships. Same paths and answers as swapi.dev, so you can change only the host.
Base URL https://openapi.xample.in/api
Try it in the docsOpen /api/Open in Asra API client
curl https://openapi.xample.in/api/people/1/
curl "https://openapi.xample.in/api/starships/?search=star"
curl https://openapi.xample.in/api/films/?page=1Specs
- OpenAPI 3.0 (JSON)
https://openapi.xample.in/swapi/openapi.json - OpenAPI 3.0 (YAML)
https://openapi.xample.in/swapi/openapi.yaml - OpenAPI 3.1 (JSON)
https://openapi.xample.in/swapi/openapi-3.1.json - OpenAPI 3.1 (YAML)
https://openapi.xample.in/swapi/openapi-3.1.yaml - Swagger 2.0 (JSON)
https://openapi.xample.in/swapi/swagger.json - Swagger 2.0 (YAML)
https://openapi.xample.in/swapi/swagger.yaml - Postman collection v2.1
https://openapi.xample.in/swapi/postman.json - .http file (VS Code REST Client, JetBrains)
https://openapi.xample.in/swapi/requests.http
Also
- JSON Schema of each resource: /api/people/schema
Petstore
The Swagger Petstore v3: pets, orders and users. Same paths and models, JSON or XML answers
(Accept: application/xml), and JSON, XML or form bodies.
Base URL https://openapi.xample.in/petstore
Try it in the docsOpen a list of petsOpen in Asra API client
curl https://openapi.xample.in/petstore/pet/1
curl -X POST https://openapi.xample.in/petstore/pet \
-H 'Content-Type: application/json' \
-d '{"name":"Rex","photoUrls":[],"status":"available"}'Specs
- OpenAPI 3.0 (JSON)
https://openapi.xample.in/petstore/openapi.json - OpenAPI 3.0 (YAML)
https://openapi.xample.in/petstore/openapi.yaml - OpenAPI 3.1 (JSON)
https://openapi.xample.in/petstore/openapi-3.1.json - OpenAPI 3.1 (YAML)
https://openapi.xample.in/petstore/openapi-3.1.yaml - Swagger 2.0 (JSON)
https://openapi.xample.in/petstore/swagger.json - Swagger 2.0 (YAML)
https://openapi.xample.in/petstore/swagger.yaml - Postman collection v2.1
https://openapi.xample.in/petstore/postman.json - .http file (VS Code REST Client, JetBrains)
https://openapi.xample.in/petstore/requests.http
Nothing is saved, unless you ask for a sandbox
Writes (POST, PUT, PATCH, DELETE) are checked and answered as if they were saved, but the next request sees the sample data again.
To keep your changes, add X-Sandbox: any-name (or ?sandbox=any-name) to your requests.
A sandbox lives in memory only: it goes away after one hour without use, or when the service restarts.
curl -X DELETE -H 'X-Sandbox: demo' https://openapi.xample.in/petstore/pet/1
curl -H 'X-Sandbox: demo' https://openapi.xample.in/petstore/pet/1 # 404 in your sandbox
curl https://openapi.xample.in/petstore/pet/1 # still there for everyone else
curl https://openapi.xample.in/sandbox/demo # what your sandbox has changed
curl -X DELETE https://openapi.xample.in/sandbox/demo # start againNeed a sandbox that stays?
A private mock of your API from your own OpenAPI spec, test data that lasts, a sandbox for your customers or your team, or webhooks and email to test against: Bitgeek builds and runs these.