https://github.com/locol23/swagger-mock-api
boilerplate for API spec with Swagger Codegen & Swagger UI & Online Swagger Editor
https://github.com/locol23/swagger-mock-api
docker nodejs swagger swagger-codegen swagger-ui
Last synced: 9 months ago
JSON representation
boilerplate for API spec with Swagger Codegen & Swagger UI & Online Swagger Editor
- Host: GitHub
- URL: https://github.com/locol23/swagger-mock-api
- Owner: locol23
- Created: 2018-07-25T02:29:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-06T01:33:06.000Z (over 7 years ago)
- Last Synced: 2025-06-08T01:42:21.520Z (10 months ago)
- Topics: docker, nodejs, swagger, swagger-codegen, swagger-ui
- Language: Dockerfile
- Homepage:
- Size: 325 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# swagger-mock-api
## Prerequisites
- [Docker](https://www.docker.com/)
- [Docker for Mac](https://www.docker.com/docker-mac)
## Getting Started
### Build
```bash
git clone --depth=1 https://github.com/locol23/swagger-mock-api
cd swagger-mock-api
docker build -t mock .
```
### Run
```bash
docker run -p 8080:8080 -d mock
```
Go to http://localhost:8080/docs/
### Stop
```bash
docker kill $(docker ps -q)
```
## How to edit API spec
### Open Online Swagger Editor
Go to [Online Swagger Editor](https://editor.swagger.io/)
### Import File
import and upload your API spec file


※ Concerning security, you can copy & paste your API spec
### Edit
edit your API spec
### Save File
save your API spec
