Insomnia gives you all the tools you need to rapidly test and build APIs. Here's a small example using the Swagger Petstore API from the documentation: You can create YAML specs of your API here. (*Note: If you are interested in learning more about *OpenAPI *specs, I suggest checking out the Swagger.io documentation. When you create a Design Document, it takes you to a new page where you can create a specification for your API using OpenAPI *standards. This is where you'll find Design Documents. You can also click Create in the right corner, which brings down a dropdown for other features. This is a great way to keep track of all the different projects you are working on, especially if you interact with many api's regularly. Collections are their own modular areas, each with their own environments, folders, and requests. When you click the Dashboard, Insomnia will take you to a zoomed out view of all your existing Collections. This will show any errors, returned data, or headers. Once you are ready to send requests, hit the big purple send button, and you'll see your response on the right hand side.
0 Comments
Leave a Reply. |