API mocking
A mock returns fixed responses for given requests. Virtualization for testing goes further and imitates behaviour such as state, delays, and errors. The two terms are often used interchangeably.
Glossary
API virtualization has two meanings. In software testing, it means simulating an API so that teams can develop and test without the real service. In integration, it means publishing a stable virtual API in front of an existing system, so that consumers do not depend on that system's own interface.
In more detail
Both uses put a stand-in between a consumer and a real service. In testing, the stand-in imitates the service. It returns recorded or scripted responses, so a team can work before the service exists, or test errors and delays that are hard to produce on demand. In integration, the stand-in fronts the real service. Requests reach the live system, and the consumer sees a contract that is designed for it and stays the same when the system behind it changes. Which meaning is intended usually depends on whether the speaker works in testing or in integration.
Example
A mobile team needs a payments API that is not finished. A virtual version returns realistic responses, including declined and timed-out payments, so the team can build and test.
A warehouse system has only an older proprietary interface. A virtual API in front of it offers a modern availability operation and translates each request to the system.
The first returns simulated data and is switched off when the real service is ready. The second returns live data and stays in place.
Related terms
A mock returns fixed responses for given requests. Virtualization for testing goes further and imitates behaviour such as state, delays, and errors. The two terms are often used interchangeably.
Data virtualization presents a query layer over several data stores, mainly for analytics. API virtualization presents operations for applications.
A gateway routes and secures calls to existing APIs. A virtual API in the integration sense defines a new contract for a system that lacks a suitable one.
Questions
In Apyrn One
Apyrn One uses the integration meaning: a governed API in front of an existing system that returns live results.
Learn moreA use case for systems that have no suitable API of their own.
Learn moreA use case for applications that are tied to an ERP's interface and release cycle.
Learn more