https://github.com/mathiasdonoso/dummy
A CLI that turns postman collections into functional mock APIs
https://github.com/mathiasdonoso/dummy
cli command-line command-line-tool mock mock-server postman postman-collection
Last synced: 14 days ago
JSON representation
A CLI that turns postman collections into functional mock APIs
- Host: GitHub
- URL: https://github.com/mathiasdonoso/dummy
- Owner: mathiasdonoso
- License: mit
- Created: 2025-11-16T02:01:54.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-11-23T04:10:15.000Z (7 months ago)
- Last Synced: 2025-11-23T06:10:36.899Z (7 months ago)
- Topics: cli, command-line, command-line-tool, mock, mock-server, postman, postman-collection
- Homepage:
- Size: 60.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dummy
**dummy** is a command-line tool that turns Postman collections into functional mock APIs.
All mock endpoints and responses are taken directly from the example responses defined in the Postman collection.
## Warning :warning:
This project is still in WIP. :construction:
Expect rough edges and occasional bugs.
## Installation
### Prerequisites
- Go 1.23+ recommended
### Build from source
```bash
git clone https://github.com/mathiasdonoso/dummy
cd dummy
go build -o dummy ./cmd/dummy
mv dummy ~/.local/bin/
```
## Usage
Run a mock server based on a Postman collection:
```bash
dummy run postman
```
Example:
```bash
dummy run postman ./collections/auth.json
```
## What id does?
- Reads the collection’s example responses
- Creates mock endpoints based on each request in the collection
- Matches incoming requests by method + path + body
- Returns the exact status code, headers, and body from the Postman example
## Contributing
Feel free to open issues or submit pull requests to improve the tool. Contributions are welcome.