Skip to content

This demo project showcases the implementation of a User Management API documented with Swagger UI and defined using the OpenAPI Specification (OAS)

License

Notifications You must be signed in to change notification settings

scottgriv/swagger-openapi-user_management_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 

OpenAPI Badge Swagger Badge
GitHub Badge Email Badge BuyMeACoffee Badge
Bronze


Swagger UI + OpenAPI Specification
User Management Demo


Harnessing the power of Swagger & OAS

This demo project showcases the implementation of a User Management API documented with Swagger UI and defined using the OpenAPI Specification (OAS). It demonstrates the creation of interactive API documentation that allows for easy exploration and testing of API endpoints directly through the browser.

Swagger UI provides a dynamic interface for visualizing and interacting with the API's capabilities, such as user creation, listing, and retrieval, without writing code. The use of OAS ensures that the API design is standardized, making it clear and understandable, which facilitates efficient integration and enhances developer experience.

Note

You can build OAS files in either YAML or JSON then use Swagger UI to view the specifications.

Key aspects include:

  • Interactive Documentation: Swagger UI offers an engaging way to understand and test the API.
  • Standardization: The OpenAPI Specification promotes clear and consistent API design principles.
  • Developer Efficiency: Streamlines integration efforts with comprehensive documentation.
  • Security and Scalability: Focuses on secure and scalable API design from the ground up.

This demo project illustrates the power of combining Swagger UI and OAS to create well-documented, easily navigable, and developer-friendly API documentation.


My demo YAML file in Swagger UI


Swagger UI's more robust demo


Table of Contents

Getting Started

  • Copy the user-management-api.yaml file into Swagger Editor to view the Swagger UI documentation.
  • To run on local, I copied the dist folder from the Swagger UI Repository, and adjusted the swagger-initilizer.js file to point to my user-management-api.yaml file (Requires disabling CORS policy for your browser).
  • Consult the resources section below for more information on Swagger and OAS for APIs.

Resources

Technologies:

OAS/Swagger Alternatives:

License

This project is released under the terms of The Unlicense, which allows you to use, modify, and distribute the code as you see fit.

  • The Unlicense removes traditional copyright restrictions, giving you the freedom to use the code in any way you choose.
  • For more details, see the LICENSE file in this repository.

Credits

Author: Scott Grivner
Email: scott.grivner@gmail.com
Website: scottgrivner.dev
Reference: Main Branch


About

This demo project showcases the implementation of a User Management API documented with Swagger UI and defined using the OpenAPI Specification (OAS)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published