Tutorials

Automatic Generation of OpenAPI contracts with API Contract Generator

API Contract Generator automates the manual task of creating OpenAPI contracts by automatically creating them from Postman collections and API traffic.

API Contract Generator Overview

A simple step-by-step video outlining how you can autogenerate new OpenAPI contracts using the API Contract Generator

42Crunch OpenAPi Editor Extension

Where to access API Contract Generator

Open the 42Crunch OpenAPI Editor extension in your favorite IDE, e.g. VS Code, JetBrains, Eclipse.

How to access API Contract Generator

Navigate to the API Contract Generator tool, from the 42C icon on the side panel.

How to access API contract Generator
Select the Postman and HAR files

Select your input files

"Select" the Postman Collection, Postman environment variable and HAR files from your file system. These files will supply the API Contract Generator with the necessary information to generate a new OpenAPI contract. The quality and coverage of the newly generated OpenAPI file are dependent on the quality of the information supplied in those files.

Autogenerate your new OpenAPI file

Once you have selected all the input files, click on "Generate" to autogenerate the new OpenAPI file

API contract Generator - Generate new OpenAPI
Newly Generated OpenAPI File

Save and Open the new OpenAPI Contract

The newly generated OpenAPI file can be saved and then opened in the IDE for further editing or auditing.

Latest Resources

WEBINAR

The Answer to the Ultimate Question of Securing AI Generated Code

Join us for the first in a series of webinars exploring the challenges of using AI coding assistants and how to ensure the APIs that they generate are secured before they ever reach production.

BLOG

Vibe Coding Has a Security Debt Problem. Here’s How to Stop Inheriting It.

By Hugh Carroll | June 30, 2026

The numbers surrounding AI coding agents are no longer theoretical. A recent article from The Next Web investigating the Lovable breach suggests that between 40 and 62% of AI-generated code contains security vulnerabilities — and is being generated at 2.74 times the rate of human-written code. In Q1 […]

DataSheet

APIs are the core building block of every enterprise’s digital strategy, yet they are also the number one attack surface for hackers. 42Crunch makes developers’ and security practitioners' lives easier by protecting APIs, with a platform that automates security into the API development pipeline and gives full oversight of security policy enforcement at every stage of the API lifecycle.

Secure Your APIs Today

#1 API security platform