mesh-http-bus
v1.0.4
Published
[![Build Status](https://travis-ci.org/mojo-js/mesh-http.svg)](https://travis-ci.org/mojo-js/mesh-http) [![Coverage Status](https://coveralls.io/repos/mojo-js/mesh-http/badge.svg?branch=master)](https://coveralls.io/r/mojo-js/mesh-http?branch=master) [![D
Downloads
5
Readme
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 omittedmethod
- (optional) resolved by mesh methodheaders
- (optional) HTTP headersquery
-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" }
});