https://github.com/mrfarhadir/loopback-client-api-gen
loopback api generator for client side (Vue, React, Angular)
https://github.com/mrfarhadir/loopback-client-api-gen
api api-generator es6-classes javascript loopback react vuejs
Last synced: 7 months ago
JSON representation
loopback api generator for client side (Vue, React, Angular)
- Host: GitHub
- URL: https://github.com/mrfarhadir/loopback-client-api-gen
- Owner: mrfarhadir
- Created: 2018-12-21T07:08:36.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-17T19:06:39.000Z (almost 7 years ago)
- Last Synced: 2025-06-14T12:39:15.196Z (8 months ago)
- Topics: api, api-generator, es6-classes, javascript, loopback, react, vuejs
- Language: JavaScript
- Size: 7.81 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Loop Back API Generator for Front-End
This Generator uses swagger API to generate JavaScript es6 classes for using Loop Back API Server.
### How to Install
npm install -g loopback-client-api-gen
or if you are using yarn
yarn add lb-api-gen global
### How to Use It
First run your Loop Back API Server.
lb-api-gen
Answer few questions and enjoy It :)

and after generating, use It like this

Each end point of model in Loop Back will be a method in this API class and for each method there is available HTTP request method.
If you need to modify request header, pass header as object to first method constructor.
### road map for HTTP methods:
- [x] get
- [x] post
- [x] delete
- [x] put
- [x] patch
- [x] head
### road map for other feathers:
- [ ] Select models to include
- [ ] Select models to exclude
- [ ] select fk type of methods
any question ?
[Ask It :)](http://mrfarhad.ir/#!/contact)
made with :heart: for you