@doctorweb/endpoints

Fetch (ECMA 6) library wrapper

Stats

StarsIssuesVersionUpdatedCreatedSize
@doctorweb/endpoints
1.3.0-alpha.73 years ago4 years agoMinified + gzip package size for @doctorweb/endpoints in KB

Readme

Install

npm install @doctorweb/endpoints

Contribuir

git clone https://bitbucket.org/doctorwebbrasil/endpoints.git
cd endpoints
npm install

Uso

1. GET de um objeto JSON

import {API} from '@doctorweb/endpoints'

let server = new API('http://localhost:8000', null)

server.post(endpoints.register, {username: "joaozinho", password: "1234", email: "joao.carneiro@gmail.com"})
.then(sucesso => console.log(sucesso)) // JSON
.catch(err => console.log(err))

2. ParĂ¢metros e Headers Constantes

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.