Postman Profile picture
Jun 6 8 tweets 2 min read Twitter logo Read on Twitter
4 types of API testing 🧪🧵👇 Image
There are many ways to test an API, and each one serves a unique purpose.

The list represents four of the most common approaches, but there are endless variations within each category that teams can use to build a customized API testing strategy.
1. Contract testing

An API contract is a human- and machine-readable representation of an API's intended functionality.

It establishes a single source of truth for what each request and response should look like and forms the basis of SLAs between producers and consumers.
API contract testing helps ensure that new releases don't violate the contract by checking the content and format of requests and responses.
2. Unit testing

API unit testing confirms that a single endpoint returns the correct response to a given request.

Unit tests may validate that an endpoint handles optional parameters correctly, or that it returns the appropriate error message when sent an invalid request.
3. End-to-end testing

End-to-end tests validate key user journeys that may involve multiple endpoints and APIs.

This involves chaining requests together and confirming that each one is working properly, which helps teams surface issues in complex workflows before users do.
4. Load testing

API load testing enables developers to confirm whether their API is able to operate reliably during times of peak traffic.

It typically involves using a testing tool to simulate large request volumes and measure the resulting response times and error rates.
We're glad you stopped by! 👋🌌

Want more #apitesting info? Check out our guide: postman.com/api-platform/a…

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Postman

Postman Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @getpostman

Jun 5
Private vs Public API catalogs 🗂️ 🧵 Image
Both private and public API catalogs make it easier for API consumers to find the APIs that meet their needs, but each type of catalog has several distinct benefits.
A private API catalog is a unified hub for every internal API within an organization.

These catalogs provide complete visibility into an organization's overall API landscape, which benefits developers and business leaders alike.
Read 10 tweets
May 18
What is REST? 🏗️🧵 Image
REST (Representational State Transfer) is an architectural style for building web services and APIs.
In a RESTful architecture, resources are identified by URIs (Uniform Resource Identifiers), and operations are performed on those resources using standard HTTP methods such as GET, POST, PUT, and DELETE.
Read 8 tweets
May 17
What is an API Gateway? 🌁🧵 Image
An API gateway is a server that acts as an entry point for clients to access and interact with multiple microservices and backend systems.
API gateways are an important component of microservice-based architectures, as they provide a centralized point of control for many common tasks that would otherwise be performed by each individual microservice.
Read 8 tweets
May 16
What is an API client? 🛠️🧵 Image
An API client is a development tool that makes it easier for producers and consumers to explore, test, and debug APIs.
Traditional approaches to calling an API require a significant amount of specialized knowledge; for instance, the API user must know a programming language, understand the API's framework and protocol, and be able to interpret the response.
Read 6 tweets
May 11
What is GraphQL? 👾🧵 Image
GraphQL is an open source query language for APIs that was created by Facebook in 2012.

With GraphQL, clients interact with a single endpoint and specify the exact data they need, without having to chain multiple requests together.
This approach reduces the number of round trips between the client and the server, which can improve performance—especially on slow or unreliable network connections.
Read 7 tweets
May 10
What is a cache? 🧵⚙️ Image
A cache is an infrastructure component that temporarily stores frequently accessed data so that it can be served more quickly and efficiently.
When an API client makes a request, the server can check the cache to see if the requested data is already available.

If it is, the server can return the cached response directly to the client, without having to execute the full request again.
Read 7 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(