Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mongoose-auto-api.consumer

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-auto-api.consumer

Automatic Mongoose REST API - API Consumption Module

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 05 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc