api-request-json

yarn add api-request-json

Usage no npm install needed!

<script type="module">
  import apiRequestJson from 'https://cdn.skypack.dev/api-request-json';
</script>

README

api-request-json

Installer

yarn add api-request-json

or

npm i -S api-request-json

Used


import { GET, POST, PUT, DELETE } from 'api-request-json'; 



    POST('url',data);

    PUT('url/{id}',data);

    GET('url').then(data => {

            console.log(data);
            
    });

    DELETE('url/{id}');

}