Skip to content

PratikTayshete/Database-Service-REST-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Database-Service-REST-API

Implementing REST API as a service to access a mongodb database

In this API:

  • A User registers with username and password
  • A User logs in with username and password

User Register Functionalities:

  • A user can register with username(unique) and password.
  • The username and password fields are required.
  • Each user should have unique username.
  • With successful registration, each user get default 10 chances(coins) to log in into their account

User Log In Functionalities:

  • A user can log in with it's username and password.
  • The username and password fields are required.
  • Access denied if both or either username and password are incorrect.
  • With each successful Log In, 1 chance(1 coin) from the total chances(coins) is reduced.
  • A user with it's username and password won't be allowed to log in after the total chances(coins) are zero.

Prerequisites:

Run :

[Inside the parent directory]

sudo docker-compose build

sudo docker-compose up

NOTE: You can use Postman to test the REST-API [https://www.getpostman.com/]

About

Created REST API as a service using Flask to access a mongodb database .

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published