HTTP Call - Tuong-Nguyen/Angular-D3-Cometd GitHub Wiki

Library

Axios and SuperAgent are 2 packages which allow calling HTTP requests. They can be used on Node and Browser.

Axio is inspired by Angular's http so it is quite similar to Angular's HTTP.

Mock HTTP

  • Nock
  • Static JSON - JSON Schema
    JSON Schema is like XML Schema. We can use it to validate an JSON object; generate sample JSON object (use Faker - Chance - ...)
  • JSON server
    A REST API server which store data in a json file. It supports all actions of REST API on a resource: POST - PUT/PATCH - GET - DELETE...
    It can be extended using middleware, ...
    It is good for building a mock REST API.
  • JSON server + JSON Schema Faker
  • Express