2.0.13 • Published 2 years ago
@jswork/web-http-schema v2.0.13
web-http-schema
Http schema for web based on next-fetch.
installation
npm install @jswork/web-http-schema
usage
import httpSchema from '@jswork/web-http-schema';
const options = {
transformResponse: ({ data }) => {
return data;
}
};
const $api = httpSchema(
{
host: 'https://api.github.com',
request: ['', 'json'],
items: [
{
items: {
login: ['get', '/users/afeiship']
}
}
]
},
options
);
$api.login().then((res) => {
// res
});
license
Code released under the MIT license.
1.0.19
2 years ago
1.0.18
2 years ago
2.0.13
2 years ago
2.0.5
2 years ago
2.0.4
2 years ago
2.0.11
2 years ago
2.0.7
2 years ago
2.0.12
2 years ago
2.0.6
2 years ago
2.0.10
2 years ago
2.0.8
2 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.2
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.1
4 years ago
1.0.0
4 years ago