Skip to content

matrix0123456789/inline-rest-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Easy to use rest client for JavaScript

quick example

if you want to connect to

https://example.com/api/person?id=1

you type

//init
import InlineRestClient from 'inline-rest-client'
var apiConnection = new InlineRestClient({url:'https://example.com/api'});

//use
apiConnection.person({id:1}).then(data=>console.log(data))

//other use
var data=await apiConnection.person({id:1})
console.log(data);

Browser support

it depends of Proxy https://caniuse.com/#feat=proxy and Promises https://caniuse.com/#feat=promises

About

Easy to use rest client for js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published