JS client for E-Com Plus REST APIs
TL;DR: We have methods to run requests for almost all E-Com Plus APIs, but you're probably searching for Store API.
The @ecomplus/client
package provides a
list of methods,
each one is a function to request a specific E-Com Plus REST API,
using axios HTTP client
and returning a
Promise.
It's available for both Node.js and browser environments.
It requires and doesn't include
axios
and
@ecomplus/utils
.
It'll be automatically imported if you're developing on Node.js environment or using a bundler such as Webpack, in other case those libraries must be included manually on window scope.
We're using Conventional Commits, all commit messages must follow these conventions.
For documentation, we're using jsdoc, all methods should be well documented.
-
Fork the repository;
-
Create a new branch with the name of your proposal;
-
Clone the repository:
git clone git@github.com:{user}/ecomplus-client.git
- Move to folder and install dependencies:
cd ecomplus-client
npm i
- Run dev server and use global
ecomClient
or edittest/demo.js
for tests on http://localhost:9245/:
npm run serve
-
Commit changes following Conventional Commits;
-
Create a new PR describing your proposal :)
Take a look on package.json
scripts:
npm run doc
- Update jsdoc/docdash generated documentation;npm run release
- Generate changelog and new version;