![]() ![]() If you happen to lose your key or forget to copy it, you can generate a new one from Create New. Note down the generated key and keep it somewhere safe you won’t be able to access it after closing down that window. In the next window give your key a name and select the role (in this case choose Admin), then hit Create. Select Settings in the left sidebar, go to the Security tab, and click on Create New. Remote admin operations using tools like Insomnia and Postman require authentication, so you’ll need an API key. Note that down since you’ll need it for Insomnia to interact with your backend. Hit Launch and your backend will be ready in a jiffy.Īfter the deployment finishes, your dashboard will show you some information, including the URL of your new server. So click on the Launch a backend button for now if you want you can start taking the Interactive Tutorial and get a guided tour of how to get around with Slash GraphQL. Then if you feel like it, you can upgrade by clicking on the Upgrade button in the lower left of the sidebar. You can try and play around with Slash GraphQL free for a month. It takes only a minute or so to get a fully functional backend running.Īfter signing up and logging in, you’ll see your dashboard. So head over to Slash GraphQL and sign up for free. ![]() So you can just focus on building your app with no distractions from the backend. No need to write resolvers or anything on your own to build your API, you just need to get your GraphQL schema ready with types representing your application data and Slash GraphQL will give you a complete backend with production-level features built-in. Slash GraphQL is Dgraph’s fully-managed backend service, which takes the hassle away from building GraphQL applications. So you’re also going to see how Insomnia can be set up with those requests. Insomnia has some handy features that make it easier to perform administrative tasks like we did using Postman. so that you can sketch out your thoughts and start prototyping your GraphQL application. ![]() In this article, you’ll find out how you can use Insomnia to interact with a Slash GraphQL instance and perform GraphQL requests such as mutations, queries, etc. Insomnia is one of the most popular API development tools that also support GraphQL. All other information below still applies. Insomnia has become an integral tool in my workflow when doing exploratory testing on APIs.Update: On April 16th 2021, Slash GraphQL was officially renamed Dgraph Cloud. With Insomnia, you can set up a request that hits a generateToken endpoint, then use its response with other endpoints. Let’s say you have an endpoint that provides a token that allows you to access other endpoints. My favorite feature of Insomnia is the ability to chain requests. In each environment I had base_url, username, and password variables, allowing me to quickly switch between and test each environment. ease the friction of switching between each of those URLs, I created an Insomnia environment for each backend. On top of that, each endpoint required standard HTTP authentication credentials, e.g. On a recent project, our client had different backends for development, test, and production - each with its own URL. The usefulness of this feature is amplified when combined with the ability to swap between different sets of environmental variables. For example, you can set a base_url variable and use that across multiple requests to hit different REST endpoints on that URL. Insomnia allows you to set environment variables that can be reused across multiple requests. Instead of having them meticulously copy over each request, you can export a JSON document and share it with them! Swappable Environments This becomes useful when you have team members who want to utilize an Insomnia workspace that you’ve built up over the course of the project. One great feature of Insomnia is the ability to export and share workspaces. I keep using it thanks to three features that allow my team to be more productive when messing around with new APIs. I was initially drawn in by its clean UI and ease of use. A while ago, I started using the Insomnia REST Client for exploratory API testing. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |