Skip to Content
Microservice APIs
book

Microservice APIs

by Jose Haro
February 2023
Intermediate to advanced
440 pages
12h 20m
English
Manning Publications
Content preview from Microservice APIs

9 Consuming GraphQL APIs

This chapter covers

  • Running a GraphQL mock server to test our API design
  • Using the GraphiQL client to explore and consume a GraphQL API
  • Running queries and mutations against a GraphQL API
  • Consuming a GraphQL API programmatically using cURL and Python

This chapter teaches you how to consume GraphQL APIs. As we learned in chapter 8, GraphQL offers a query language for web APIs, and in this chapter you’ll learn how to use this language to run queries on the server. In particular, you’ll learn how to make queries against a GraphQL API. You’ll learn to explore a GraphQL API to discover its available types, queries, and mutations. Understanding how GraphQL APIs work from the client side is an important step toward mastering ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

API Design Patterns

API Design Patterns

John J. Geewax
Designing APIs with Swagger and OpenAPI

Designing APIs with Swagger and OpenAPI

Lukas Rosenstock, Joshua Ponelat

Publisher Resources

ISBN: 9781617298417Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link