
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
quickndirtyapi
Advanced tools
$ npm install quickndirtyapi
The Quick N Dirty API will connect to your mongo database and dynamically create basic endpoints based for all your collections. Basic endpoints include /collection and /collection/:id where collection is the name of a collection in your mongo database.
To connect with the Quick N Dirty API ...
1.Require Express:
var express = require('express'); // require express package
var app = express(); // define express instance
2.Require Quick N Dirty API:
var qnd = require('quickndirtyapi'); // require quickndirtyapi package
qnd(app, '127.0.0.1:27017/{dbName}'); // replace {dbName} with the name of your mongo database
3.Add a sample collection called user in your mongo database.
4.Start your server.js file.
5.Quick N Dirty will scan your mongo database and automatically create the GET, POST, PUT and DELETE endpoints for your user collection.
You will have access to the following endpoints:
POST /user
GET /user
GET /user/:id
PUT /user/:id
DELETE /user/:id
There is no validation on input fields as each project has its own requirements. This package is a "Quick N Dirty" way to get your project's API up and running as quick as possible to reduce bottlenecks when starting a project. As you build out your own endpoints, with validation and other requirements, add them to the bottom of your server.js file to overwrite the endpoints created by the Quick N Dirty API package.
(The ISC License)
Copyright (c) 2015, James Corr james@onlygrowth.com
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
FAQs
creates dynamic REST APIs based on your MongoDB structure
We found that quickndirtyapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.