Skip to content

A Flask server that gives a basic UI to perform CRUD operations on Mongo Db. User creates data by filling in a form. All other operations are performed on this object.

Notifications You must be signed in to change notification settings

HatimZ/Flask-Server-with-MongoDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notes-Application

This a backend server of a Web application that allows CRUD operations on a database. The database used is MongoDB. Create and READ can be done through the browser, but delete and update should be done through POSTMAN. This is because the HTML code is not written to execute these commands in the browser.

MIT License

API Reference

READ all registered Users

  GET '/All-Users'

Returns a List of all the Registered Users in the MongoDb table.

CREATE data in the database (Registers User)

  POST /sign-up
Parameter Type Description
email string Required.valid email
firstName string Required. User name

The API saves user in a local MongoDb table. Passwords are not saved. The user enters details through a form.

UPDATE a User based on the ID which will be given in URL

  PATCH /update/<id>
Parameter Type Description
id integer Required. A valid ID
email string Required.valid email
firstName string Required. User name

Updates user info if ID is valid otherwise if not prints a response that "Nothing is updated".

DELETE a User based on the ID which will be given in URL

  DELETE /delete/<id>
Parameter Type Description
id integer Required. A valid ID
email string Required.valid email
firstName string Required. User name

Deletes user info if ID is valid otherwise if not prints a response that "User not deleted".

🛠 Skills

Python , Flask , API design , HTML

About

A Flask server that gives a basic UI to perform CRUD operations on Mongo Db. User creates data by filling in a form. All other operations are performed on this object.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages