1.0.1 • Published 6 years ago

getrest v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

GetRest - simple REST client.

Its an implementation of a basic REST http client build upon a FETCH feature that most of modern browser supports.

Installation

npm install getrest

yarn add getrest

Documentation

RestClient implements interface IRestClient visible below.

export interface IRestClient<T> {
    create: ( obj: T ) => Promise<Response>;
    delete: ( id: string ) => Promise<Response>;
    getAll: () => Promise<Response>;
    getById: ( id: string ) => Promise<Response>;
    update: ( obj: T, id: string ) => Promise<Response>;
}

Author

Tomasz Grabowski

1.0.1

6 years ago

1.0.0

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago