Glossary

ProgrammableWeb's glossary of API and other technology terms and defination
A B C D E F G H I J K L M N O P Q R S T U V W X
Mocking

Mocking involves simulating a system for development or testing purposes. A mock API is a simulated server of a production API. An API mock returns data or performs functionality in the same manner a production API would. Utilizing a mock API during development helps programmers conform to a service's behavior while avoiding the high server costs of pinging live production endpoints. Mocks can also respond faster than a production endpoint, or simulate slow response times and errors. The latter can test the stability and security of the consuming application. Mocking can help ensure an API meets desired expectations for non-functional testing purposes as well. API-as-a-products often make sandbox versions available for developer consumers to build against as they construct their applications. API mocking is also commonly referred to as stubbing, sandboxing, and virtualization.