What is Swagger? How to document your Rest API using swagger?

What is Swagger? How to document your Rest API using swagger?