Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including mongoose-auto-api.consumer with all npm packages installed. Try it out:

var mongooseAutoApiConsumer = require("mongoose-auto-api.consumer")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

mongoose-auto-api.consumer v1.0.0

Automatic Mongoose REST API - API Consumption Module

Mongoose Auto API - API Consumption Module

Build Status npm version

Automatic Mongoose REST API - Rest API Module ☕

Install

  • npm i -S mongoose-auto-api.consumer

Model Setup

Usage

$ consumer = require('mongoose-auto-api.consumer')

Methods

  • URL Attribute i.e. consumer.url
    • Gets API url
  • Port Attribute i.e. consumer.port
    • Gets API port
  • setPort
    • sets server port for requests
    • parm - port (Number)
  • setAuthToken
    • sets auth token for requests
    • parm - authToken (str)
  • Collection methods
    • parms - collection (str), args (obj)
    • insert -> /collection/insert
    • update -> /collection/update
    • remove -> /collection/delete
    • removeAll -> /collection/delete_all
    • get -> /collection/get
    • getAll -> /collection/get_all
    • find -> /collection/find
    • schemaInfo -> /collection/schema
    • sterilize -> /collection/sterilize
    • updatePush -> /collection/push
    • updatePushUnique -> /collection/push_unique
    • updateSet -> /collection/set
  • Auth methods
    • parms - args (obj)
      • args are url query parameters, see Rest API link above for query parameters
    • setSecretKey -> /update_secret_key
    • login -> /login
    • signup -> /signup
    • updatePassword -> /update_password
    • verifyToken -> /verify_token
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free