1.0.1 • Published 3 years ago

@jswork/taro-http-schema v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

taro-http-schema

Http schema for taro..

version license size download

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.

1.0.1

3 years ago

1.0.0

3 years ago