All Projects → rmariuzzo → lowdb-api

rmariuzzo / lowdb-api

Licence: MIT license
⚡️ lowdb-api - Express middleware that serve a virtual RESTful API.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to lowdb-api

Rhythm-CB-Scripts
Collection of scripts for use with Carbon Black Cb Response API
Stars: ✭ 14 (-48.15%)
Mutual labels:  restful-api
cannercms
⚡️[NOT MAINTAINED] Content Management Framework creates custom CMS fast and easy. Support data sources such as Firebase/Firestore, GraphQL and Restful APIs.
Stars: ✭ 2,452 (+8981.48%)
Mutual labels:  restful-api
bdapis
Rest API service. Build with NodeJS, Express, MongoDB
Stars: ✭ 65 (+140.74%)
Mutual labels:  restful-api
magento-ngrok
Magento 2 module for ngrok.io service support
Stars: ✭ 45 (+66.67%)
Mutual labels:  development-environment
modx2-api
MODX Revolution RESTful API
Stars: ✭ 16 (-40.74%)
Mutual labels:  restful-api
appbox.deploy
AppBoxFuture is Low-Code DevOps platform with embedded distributed HTAP database.
Stars: ✭ 25 (-7.41%)
Mutual labels:  development-environment
go-echo-boilerplate
The fastest way to build a restful API with golang and echo framework. Includes common required features for modern web applications. A boilerplate project with golang and Echo.
Stars: ✭ 53 (+96.3%)
Mutual labels:  restful-api
EvDev
Full-Featured Dockerized Development Environment
Stars: ✭ 21 (-22.22%)
Mutual labels:  development-environment
ccu-jack
CCU-Jack bietet einen einfachen und sicheren REST- und MQTT-basierten Zugriff auf die Datenpunkte der Zentrale (CCU) des Hausautomations-Systems HomeMatic. Zudem können einfach Fremdgeräte an die CCU angebunden werden.
Stars: ✭ 63 (+133.33%)
Mutual labels:  restful-api
mssql-restapi
A simple REST API for SQL Server, Azure SQL DB and Azure SQL DW using SMO on .NET Core 2.0
Stars: ✭ 33 (+22.22%)
Mutual labels:  restful-api
base
base tool yamls (logging, monitoring, oauth, certificates, DNS)
Stars: ✭ 33 (+22.22%)
Mutual labels:  development-environment
rails-development-environment
Development environment for Ruby on Rails based on Vagrant, VirtualBox and Ubuntu 16.04 LTS (Xenial Xerus).
Stars: ✭ 50 (+85.19%)
Mutual labels:  development-environment
pulsarctl
a CLI for Apache Pulsar written in Go
Stars: ✭ 106 (+292.59%)
Mutual labels:  restful-api
dhiwise-nodejs
DhiWise Node.js API generator allows you to instantly generate secure REST APIs. Just supply your database schema to DhiWise, and a fully documented CRUD APIs will be ready for consumption in a few simple clicks. The generated code is clean, scalable, and customizable.
Stars: ✭ 224 (+729.63%)
Mutual labels:  restful-api
sca-best-practice
Provide microservice API for HanLP
Stars: ✭ 13 (-51.85%)
Mutual labels:  restful-api
response
Response HTTP package for Simfony, Laravel, Lumen and PHP 7 with standard REST API
Stars: ✭ 14 (-48.15%)
Mutual labels:  restful-api
odoo-development-environment-tutorial
建立 odoo 開發環境 ( source code )
Stars: ✭ 25 (-7.41%)
Mutual labels:  development-environment
Database-Web-API
Dynamically generate RESTful APIs from the contents of a database table. Provides JSON, XML, and HTML. Supports most popular databases
Stars: ✭ 37 (+37.04%)
Mutual labels:  restful-api
node-server
(@nestjs refactoring)⚡️My personal website's api server, a RESTful application that powered by @eggjs
Stars: ✭ 17 (-37.04%)
Mutual labels:  restful-api
pong
🏓 Pong for RESTful APIs (microservices pattern) using Serverless Framework ⚡
Stars: ✭ 27 (+0%)
Mutual labels:  restful-api

lowdb api

lowdb-api is an Express middleware that interpret all requests as a real RESTful API.

Features

  • Support common http methods (get, post, put and delete).
  • Custom API prefix.
  • Relies on lowdb.
  • Accept custom lowdb adapter.

Motivation

During initial development process, I usually want to interact with an API, but I don't want to spend time writing one. I was looking for a catch-all RESTful endpoint where I could do commons CRUD operations. Unfortunately, I haven't found it... therefore, I created: lowdb-api.

Installation

npm install lowdb-api

Configuration

const path = require('path')
const express = require('express')
const bodyParser = require('body-parser')
const lowdbApi = require('lowdb-api')

const app = express()
const file = path.join(__dirname, './db.json')
const options = {}

app.use(bodyParser.json())
app.use(lowdbApi(file, options))

Options

  • prefix - (string, default: null) specify the prefix if you want to mount lowdb-api under a path (example: /api/v1)
  • adapter - (string, default: lowdb/adapters/FileSync) a lowdb adapter.

Usage

For the aforementioned configuration the following paths will be interpreted:

  • GET: /resources - list all resources.
  • GET: /resources/:id - get a resource by its id.
  • POST: /resources - create a new resource in the list.
  • PUT: /resources/:id - update an existing resource.
  • DELETE: /resources/:id - delete an existing resource.

Issues

If you spot a bug please create an issue.

Development

  1. yarn
  2. yarn test or yarn test -- --watch
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].