apischema
v0.0.29
Published
api schema
Downloads
6
Readme
apischema
Useage
export const getCategorys = schema.get('/api/getcategorys/{page}', {
page: { type: Number, required: true, urlOnly: true },
type: { type: Number, required: true },
});
getCategorys({
page: 1,
type: 1
}, {
headers: {
'X-Access-Token': 'djdjxjqi111',
},
}).then((json) => {
log(json);
});
Dev
$ npm i
$ npm test
$ npm run dist