1.0.1 • Published 3 years ago
@jswork/taro-http-schema v1.0.1
taro-http-schema
Http schema for taro..
installation
npm install @jswork/taro-http-schema
usage
import httpSchema from '@jswork/taro-http-schema';
const apis = httpSchema({
host: 'https://api.github.com',
request: ['', 'json'],
items: [
{
items: {
profile: ['get', '/users/afeiship']
}
}
]
});
apis.profile().then((res) => {
console.log(res);
});
license
Code released under the MIT license.