mongodb_api

api for operations on mongodb

API endpoint

read :        read all data from collection
create :      insert new data (record in collection)
update :      update data (record in collection)
delete_one :  delete one record from collection
delete_many : delete multiple records from collection 

Run

download this repository install docker and docker compose then cd into this repo and run

docker-compose up --build

Results

Data in database

alt text

Read

alt text


Create

alt text

Update

alt text

after update

alt text


delete

alt text

after delete

alt text