JSPM

  • Created
  • Published
  • Downloads 1168
  • Score
    100M100P100Q109317F
  • License MIT

A library of components for accessing RESTful services with javascript/typescript.

Package Exports

  • simplerestclients

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (simplerestclients) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

SimpleRestClients

A simple set of wrappers for RESTful calls. Consists of two modules:

SimpleWebRequest

Wraps a single web request. Has lots of overrides for priorization, delays, retry logic, error handling, etc.

GenericRestClient

Wraps SimpleWebRequest for usage across a single RESTful service. In our codebase, we have several specific RESTful service interaction classes that each implement GenericRestClient so that all of the requests get the same error handling, authentication, header-setting, etc.