Software Architecture
API Spec Viewer
View and explore OpenAPI (Swagger) specifications. Browse endpoints, schemas, parameters, and responses in an interactive viewer.
Estimated time: 5-15 min
Difficulty level: Intermediate
Privacy: Runs locally
API Spec Viewer
View and explore OpenAPI (Swagger) specifications. Paste your spec or use the example.
Sample User API
v1.0.0OpenAPI 3.0.33 endpoints5 operations4 schemas
A sample API for managing users demonstrating OpenAPI specification features.
Servers
https://api.example.com/v1https://staging-api.example.com/v1
Endpoints
Schemas
Understanding OpenAPI Specifications
What is OpenAPI?
OpenAPI (formerly Swagger) is a specification for describing REST APIs. It defines endpoints, request/response formats, authentication, and more in a machine-readable format.
Key Components
- Info: API title, version, description
- Servers: Base URLs for the API
- Paths: Available endpoints and operations
- Components: Reusable schemas and security definitions
HTTP Methods
- • GET: Retrieve resources
- • POST: Create new resources
- • PUT: Update/replace resources
- • PATCH: Partial updates
- • DELETE: Remove resources
Best Practices
Use meaningful operation IDs. Document all parameters and responses. Include example values. Version your API. Keep your spec in sync with implementation.