Chapter 4
API Design: REST, gRPC and GraphQL
Learn what an API is, how REST uses HTTP to expose resources, and when gRPC or GraphQL is a better fit than REST.
Beginner
4 min2gRPC and GraphQL vs RESTBeginner
4 minChapter quiz
API Design: REST, gRPC and GraphQL · 5 questions
1.Which HTTP method is NOT idempotent?
2.A client is not logged in and calls a protected endpoint. Which status code fits best?
3.Why is cursor pagination preferred for large, fast-changing lists?
4.A screen needs data from several related resources and REST needs many calls. Which style helps most?
5.Which style is the best fit for high-volume calls between internal backend services?
0 of 5 answered

