1.2.0 • Published 9 years ago
pact-api v1.2.0
PactAPI
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.
Usage
npm install https://github.com/PactCoffee/pact-api
Use in your project:
import {getOrders} from 'PactAPI'; getOrders(myUserID).then(doStuffWithOrders, handleFailure);
Available Methods
TODO
Core API docs
- Hit http://petstore.swagger.io
- Enter
https://core.pactcoffee.com/v1/api_docs
into the input - View docs
PactApp API docs
TODO
Running tests
TODO
Contributing/Building
- Fork
- Make changes
npm run build
- Commit changes
- Appropriate version bump:
npm version major|minor|patch
- Open a PR
1.2.0
9 years ago