


View the status code, response time, and response size. Import a collection directly or generate one with one click from:Īn API schema in the RAML, WADL, OpenAPI, or GraphQL format Instead of creating calls manually to send over the command line, all you need is a Postman Collection.

Raw body editing-For sending data without any encodingīinary data-For sending image, audio, video, or text files Multipart/form-data-For sending large quantities of binary data or text containing non-ASCII characters URL-encoded-The default content type for sending simple text data Create and save custom methods and send requests with the following body types: To use Apollo Explorer, head over to /dev to get started with your first development graph.Create and execute any REST, SOAP, and GraphQL queries from within Postman. The Explorer comes with productivity-boosting features like one-click query building, intelligent search, and the ability to extract variables and fragments.Īpollo Explorer also comes with development graphs, which enables you to build, test, and document your schema changes locally, as well as preview graph changes in local branches and PRs. Get started with Apollo ExplorerĪpollo Explorer is a free cloud GraphQL IDE that we built from the ground up, specifically for GraphQL developers. And since GraphQL works on top of HTTP, you can use Postman to manually test your API. Keeping those feedback loops tight helps so that you can verify that things are working the way they should be. When you’re building out your GraphQL API, it’s a good idea to use a GraphQL IDE to test out your GraphQL operations. Open the Body tab and check the data type for raw. After creating a request, use the dropdown to change the request type to POST. Looking at the results in the Response window at the bottom, it looks like we only got a single album back: “ Paul’s Boutique” (good album 👍 ).Īnd that’s all there is to it. 1 Answer Sorted by: 140 Send XML requests with the raw data type, then set the Content-Type to text/xml. enum Genre Īnd when you’re ready, click the blue Send button again. In the discography schema, you’ll find definitions for albums, tracks, and artists - and two queries that return either all albums, or a specific one. Let’s review our schema before we get into it. If you see the following, your server is up and running: 🚀 Server ready at Review the schema
#POSTMAN DOCUMENT INSTALL#
Npm install & npm run start:example discography
#POSTMAN DOCUMENT CODE#
To pull the code from GitHub and start the server, paste the following command into a terminal on your machine. We’re going to use the discography example from apollo-server-starter. H tr tt c cc phng thc HTTP (GET, POST, PUT, DELETE, OPTIONS, HEAD. You understand the basics of GraphQL (you can read “ What is GraphQL? GraphQL Introduction” to get up to speed) Postman l g Postman l mt App Extensions, cho php lm vic vi cc API, nht l REST, gip ch rt nhiu cho vic testing.You have the Postman Agent installed or a Postman account.You have NPM and Node.js (8+) installed.
#POSTMAN DOCUMENT HOW TO#
In this short post, we’ll walk through how to manually test your GraphQL API using Postman. It works as a great tool for testing any HTTP endpoint – that means GraphQL too. If you’re not using Apollo Explorer to test your GraphQL API (our free GraphQL IDE in Apollo Studio), another option is Postman. When building out APIs on the web, we’ll often find ourselves in the situation where we need to quickly verify that the route or API call we just created works the way we intend it to.
