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

@veams/bp-mock-api

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@veams/bp-mock-api

Blueprint templates for a mock api endpoint.

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
139
increased by65.48%
Maintainers
2
Weekly downloads
 
Created
Source

Veams Blueprint :: Mock API Endpoint (@veams/bp-mock-api)

With this blueprint you can scaffold a mock api endpoint with following options:

  1. Which methods do you want to provide by your endpoint?

Setup

  1. First of all be sure you have installed veams-cli.
  2. After that be sure your project contains a veams-cli.json.
  3. Make sure you have updated veams-cli.json to fit the needs of your project.
  4. Install the package with npm i @veams/bp-mock-api --save-dev.
  5. Reference the package in veams-cli.json by adding api to the blueprint object like so:
{
    "blueprints": {
        "api": {
            "skipImports": true,
            "path": "node_modules/@veams/bp-mock-api"
        }
    }
}

Usage

Now you can use this blueprint with veams by executing:

veams add api server/routes/api/articles

The output in your file system will be:

└── articles
    └── controller.js
    └── index.js
    └── model.js
    └── USAGE.md

Be sure to add the snippet in USAGE.md into src/server/routes/api/index.js to register the route.

Have fun!

Keywords

FAQs

Package last updated on 30 May 2018

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