New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

drydock-boilerplate-json

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drydock-boilerplate-json

A JSON API variant of [the drydock boilerplate](https://github.com/TestArmada/drydock-boilerplate).

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

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

A JSON API variant of the drydock boilerplate.

Quick Start

In one shell:

Clone this boilerplate, nuke git artifacts, npm install:

$ git clone git@github.com:TestArmada/drydock-boilerplate-json.git
$ cd drydock-boilerplate-json
$ rm -rf .git
$ npm install

Start the mock from the command line:

$ node example-mock/main.js

In another shell, test the mock's default output at GET /api/person:

$ curl http://127.0.0.1:1337/api/person; echo
{}

Change the birthday value with a POST of a JSON object to /api/person:

$ curl -H "Content-Type: application/json" -X POST -d '{"birthday":"01/02/1925"}' http://127.0.0.1:1337/api/person; echo 
{"status":"OK"}

Test the mock's output at GET /api/person. The birthday has been updated.

$ curl http://127.0.0.1:1337/api/person; echo
{"birthday":"01/02/1925"}

FAQs

Package last updated on 19 Nov 2015

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