Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bang88/hake-swagger-codegen
A Swagger Codegen for Frontend projects
https://github.com/bang88/hake-swagger-codegen
Last synced: 8 days ago
JSON representation
A Swagger Codegen for Frontend projects
- Host: GitHub
- URL: https://github.com/bang88/hake-swagger-codegen
- Owner: BANG88
- License: mit
- Created: 2017-03-21T10:30:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-22T09:04:14.000Z (almost 8 years ago)
- Last Synced: 2025-01-04T15:16:36.166Z (22 days ago)
- Language: TypeScript
- Size: 46.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# [WIP] hake-swagger-codegen [![Build Status](https://travis-ci.org/bang88/hake-swagger-codegen.svg?branch=master)](https://travis-ci.org/bang88/hake-swagger-codegen) [![Coverage Status](https://coveralls.io/repos/github/bang88/hake-swagger-codegen/badge.svg?branch=master)](https://coveralls.io/github/bang88/hake-swagger-codegen?branch=master)
> A Swagger Codegen for Frontend projects, generate everything you need from a swagger.json file
- [x] service.ts
- [ ] route
- [ ] Component based on Antd
- [ ] docs## Install
```
$ npm install --save hake-swagger-codegen
```## Usage
```js
import hakeSwaggerCodegen from 'hake-swagger-codegen'hakeSwaggerCodegen('unicorns');
//=> 'unicorns & rainbows'
```## API
### hakeSwaggerCodegen(input, [options])
#### input
Type: `string`
Lorem ipsum.
#### options
##### foo
Type: `boolean`
Default: `false`Lorem ipsum.
## CLI
```
$ npm install --global hake-swagger-codegen
``````
$ hake-swagger-codegen --helpUsage
hake-swagger-codegen [input]Options
--foo Lorem ipsum [Default: false]Examples
$ hake-swagger-codegen
unicorns & rainbows
$ hake-swagger-codegen ponies
ponies & rainbows
```## License
MIT © [bang](https://github.com/bang88)