---
title: "Announcing rapid API mocking via OpenAPI"
description: "Announcing our new Mock API policy that allows you to develop a mock API in record time using examples in your OpenAPI document"
canonicalUrl: "https://zuplo.com/blog/2023/05/18/rapid-api-mocking-using-openapi"
pageType: "blog"
date: "2023-05-18"
authors: "josh"
tags: "API Mocking, OpenAPI, Tutorial"
image: "https://zuplo.com/og?text=Announcing%20rapid%20API%20mocking%20via%20OpenAPI"
---
Today we're excited to announce one of the first cool features resulting from
Zuplo's bet on the OpenAPI standard: rapid mocking of APIs using examples inside
an OpenAPI document - it's just what every

Sometimes it's better to show than tell, so in that spirit, check out the 2
minute video below that shows you the end-to-end experience.

<YouTubeVideo videoId="aS4BwleV_GY" />

With this powerful new capability, developers can effortlessly generate mock
endpoints that mimic the behavior of real APIs, speeding up development cycles
and enabling more efficient testing. Combined with our `sleep` policy you can
even mix in some latency for added realism - just what every mockstar frontend
developer needs!

## Walkthrough

To get started, create a new project in Zuplo at
[portal.zuplo.com](https://portal.zuplo.com/signup?utm_source=blog) (or use an
existing project if you have one). Hopefully you have an OpenAPI document (or
[you can get ChatGPT to generate one for you](https://youtu.be/8zAuE2OUQLE))
with some juicy examples in it - I'm going to use the
[Postman OpenAPI](https://api.apis.guru/v2/specs/getpostman.com/1.20.0/openapi.json)
doc from [apis.guru](https://apis.guru).

Let's import your OpenAPI doc.

![Import OpenAPI](https://cdn.zuplo.com/assets/f6acc40b-1646-47d0-943e-c167f7438765.png)

Don't forget to save your changes (CMD+S). Not all routes in this OpenAPI doc
have examples but the route named **Single API** does, so lets use that one.

![Single API](https://cdn.zuplo.com/assets/524bc2a2-afe7-4d8a-9382-18c8c1d4f760.png)

Select that route and expand the policies window. Click **Add Policy** to the
request pipeline and search for `Mock`. You should find the new Mock API policy.

![Mock API Policy](https://cdn.zuplo.com/assets/f4edcbf8-d1ab-4cda-afdd-1407ec14e515.png)

Accept the defaults and click OK. Save your changes (CMD+S).

Click the **Test** button next to the path field and click the URL to open the
API response in your browser:

![Test URL](https://cdn.zuplo.com/assets/c456637b-1f99-49a3-b74c-8710cd763ee1.png)

And boom 💥 you just mocked some of the postman API. Sign up for a free account
at [portal.zuplo.com](https://portal.zuplo.com/signup?utm_source=blog) and
enjoy!