API Schema
A package to handle JANIS Views Schema APIs
Installation
npm install @janiscommerce/api-schema
Usage
'use strict';
const { ApiSchema } = require('@janiscommerce/api-schema');
(async () => {
const apiSchema = new ApiSchema();
apiSchema.pathParameters = {
entity: 'someEntity',
action: 'someAction'
};
await apiSchema.validate();
const response = ApiSchema.process();
})();