Noisy Pterodactyl Melodies
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

mesh-http

4.0.2 • Public • Published

Build Status Coverage Status Dependency Status

HTTP (api) adapter for mesh.

Installation

npm install mesh-http

http(operationName, options)

Performs a new operation 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 db = http();
 
// POST /people?q=search { name: "abba" }
db({
  url: "/people",
  method: "POST",
  data: { name: "abba" },
  query: { q: "search" }
});

Keywords

install

npm i mesh-http

Downloadsweekly downloads

46

version

4.0.2

license

ISC

repository

githubgithub

last publish

collaborators

  • avatar
  • avatar