Skip to content

osmay88/FlaskApplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlaskApplication

In order to run this application you will need to set three environment variables:

  • CONNECTION_STRING the database connection string
  • MAIL_USERNAME email username
  • MAIL_PASSWORD email password
  • ENV_SETTINGS Settings to be used when running the application. Values: Development, Production
  • TEST_EMAIL Email to use when testing the application

The API consist of 4 endpoints

  • /register Register a new user to the system. The user data is a json that contains 3 values:
    • username
    • email
    • password
    After the user is register, a email is send with a confirmation link.
  • /confirm/+activationlink Activate the user in the database.
  • /login Login a user to the system. The user data is a json that contains 2 values:
    • username
    • password
    If the login success a bearer token is return.
  • /generatekey Generate an api key, requires authentification.
  • /update Update the user password, required athentification. The user data is a json that contains 2 values:
    • oldpassword
    • newpassword

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages