Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/princekf/swagger-express-typescript

Example project to generate API docs using swagger, express as server
https://github.com/princekf/swagger-express-typescript

Last synced: about 2 months ago
JSON representation

Example project to generate API docs using swagger, express as server

Awesome Lists containing this project

README

        

# Swagger - Express : Generating API documentaions - Example

### Clone the repository and start using yarn ###
```
* yarn install
* yarn dev
* Open http://localhost:3000/api/docs/
```

### Creating Swagger API documentation from multiple yaml files ###

1. Add `yaml` files for `defenitions` in swagger/definitions/index.yaml
2. Add `yaml` files for `paths` in swagger/paths/index.yaml
3. Create single json file using `swagger-cli` command. `yarn doc:generate`
4. Serve the html content using `swagger-ui-express` via express api (refer `app.ts`)