mesh-http
v4.0.2
Published
mesh HTTP adapter
Readme
HTTP (api) adapter for mesh.
Installation
npm install mesh-httphttp(operationName, options)
Performs a new operation on the API
optionsurl- (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 db = http();
// POST /people?q=search { name: "abba" }
db({
url: "/people",
method: "POST",
data: { name: "abba" },
query: { q: "search" }
});