A JS wrapper around Pact's APIs to make it faster and easier to use in client/server JS projects.
Each method returns a promise. The promise will resolve to the raw output of the Pact API, or reject with a (hopefully) helpful error message.
npm install https://github.com/PactCoffee/pact-api
- Use in your project:
import {getOrders} from 'PactAPI';
getOrders(myUserID).then(doStuffWithOrders, handleFailure);
This project currently requires the use of a module build tool like browserify or webpack. The output dist
is simply babel transformed code to ES5. In future this will be a completely packaged dist.
TODO
- Hit http://petstore.swagger.io
- Enter
https://core.pactcoffee.com/v1/api_docs
into the input - View docs
TODO
TODO
- Fork
- Make changes
npm run build
- Commit changes
- Appropriate version bump:
npm version major|minor|patch
- Open a PR