Skip to content

Latest commit

 

History

History
44 lines (42 loc) · 1.54 KB

README.md

File metadata and controls

44 lines (42 loc) · 1.54 KB

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