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

12 Testing and validating APIs

This chapter covers

  • Generating automatic tests for REST APIs using Dredd and Schemathesis
  • Writing Dredd hooks to customize the behavior of your Dredd test suite
  • Using property-based testing to test APIs
  • Leveraging OpenAPI links to enhance your Schemathesis test suite
  • Testing GraphQL APIs with Schemathesis

This chapter teaches you how to test and validate API implementations. Thus far, we’ve learned to design and build APIs to drive integrations between microservices. Along the way, we did some manual tests to ensure our implementations exhibited the correct behavior. However, those tests were minimal, and most importantly, they were purely manual and therefore not repeatable in an automated fashion.

In this chapter, ...

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