Skip to content

Commit 4903bdf

Browse files
committed
md file
1 parent 7f22e42 commit 4903bdf

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
3+
# How generate an OpenAPI file from your server code
4+
5+
This guide will walk you through using generating an OpenAPI file from your server code using a keyboard shortcut.
6+
7+
## Step 1: Locate the Relevant Code
8+
9+
Find a codefile that owns your server logic, for example a `server.js`.
10+
11+
## Step 2: Using the Command
12+
13+
1. Open your server file containing API routes.
14+
2. Press Shift+Cmd+A (Mac) or Shift+Ctrl+A (Windows/Linux).
15+
3. The extension will automatically:
16+
- Parse your code for API routes
17+
- Generate a Postman collection
18+
- Convert it to an OpenAPI specification
19+
20+
21+
22+

0 commit comments

Comments
 (0)