O’REILLY Learning「Microservice APIs」8〜10

https://learning.oreilly.com/library/view/microservice-apis/9781617298417/

Part 3. Designing and building GraphQL APIs

GraphQLは、APIのためのクエリー言語です。

8 Designing GraphQL APIs

This chapter covers
・Understanding how GraphQL works
・Producing an API specification using the Schema Definition Language (SDL)
・Learning GraphQL’s built-in scalar types and data structures and building custom object types
・Creating meaningful connections between GraphQL types
・Designing GraphQL queries and mutations

GraphQLは、API利用者がサーバーから取得したいデータとその取得方法を完全に制御することを可能にする。

GraphQL
https://graphql.org/
「APIのためのクエリ言語であり、既存のデータでクエリを実行するためのランタイム」と定義

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

GraphQL Faker
https://github.com/IvanGoncharov/graphql-faker
faker.js のリアルなデータで、将来の API をモックしたり、既存の API を拡張することができます。
コーディングは必要ありません。
必要なのは GraphQL SDL を書くことだけです。
SDL エディターでサンプルを提供しますのでご安心ください。

10 Building GraphQL APIs with Python

This chapter covers
・Creating GraphQL APIs using the Ariadne web server framework
・Validating request and response payloads
・Creating resolvers for queries and mutations
・Creating resolvers for complex object types, such as union types
・Creating resolvers for custom scalar types and object properties

Ariadne
https://ariadnegraphql.org/

memoO'REILLY Learning

Posted by shi-n