Key Takeaways Documenting your Rails API with Swagger is essential to allow others to understand, implement features or fix bugs in your code. This is especially important for APIs as they are going to be used by others through exposed endpoints. Swagger has two parts: swagger-docs, which generates documentation for your API, and swagger-ui, which uses JSON generated by swagger-docs to build a UI
