1.0.4 • Published 9 years ago

mesh-http-bus v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
9 years ago

Build Status Coverage Status Dependency Status

HTTP (api) adapter for mesh.

Installation

npm install mesh-http

http(actionName, options)

Performs a new action on the API

  • options
    • url - (optional) path to the route - automatically resolved by collection if this is omitted
    • method - (optional) resolved by mesh method
    • headers - (optional) HTTP headers
    • query -query params
var mesh = require("mesh");
var http = require("mesh-http");
var bus  = http();

// POST /people?q=search { name: "abba" }
bus({
  url: "/people",
  method: "POST",
  data: { name: "abba" },
  query: { q: "search" }
});
1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago