This is going to be a complete guide about how to document a Rest Api and why it is important to document an API. Also, we will present a gem, Rswag, which will ease the amount of work needed to generate Swagger documentation, with a complete tutorial to set it in a Ruby On Rails API.