0.0.4 • Published 4 years ago

morozov v0.0.4

Weekly downloads
2
License
GPL-3.0-or-later
Repository
github
Last release
4 years ago

Public Morozov

Public Morozov is simple MongoDB REST API for frontenders who have no backend

Usage

Find Objects

GET /collection_name
Accept: application/json

You can use query string parameters as MongoDB find criterias

Create Object

POST /collection_name
Content-Type: application/json

{"first": "first", "second": "second"}

Update Object

PUT /collection_name?_id=document_id
Content-Type: application/json

{"first": "first", "second": "second"}

You must use query string parameters as MongoDB update criterias

Remove Object

DELETE /collection_name?_id=document_id
Accept: application/json

You must use query string parameters as MongoDB update criterias

Install

After installing MongoDB (MacOS) run

git clone git@github.com:kissarat/morozov.git
cd morozov
npm install
npm start

You can customize configuration in config/local.json (see config/default.json for example)

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago