Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1009 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 1009 Bytes

challenge_yourself_api

The official API for Challenge Yourself App It is an API made with Flask ORM : SQLAlchemy

local database

You should create the database if it's not inside your server The tables will be created automatically once you run the API SGBD : MySQL Database Name : challenge_yourself

global database

Change the app.config['SQLALCHEMY_DATABASE_URI'] to global_database instead of local_database

requirements

You can find all the libraries you need to start the API in the file "requirements.txt"

run

Execute the "app.py" file to run the API

models

The models represent the structures in database We can manipulate the models to make operations and not with SQL requests

routes

The routes are made for API operations (GET/POST/PUT/DELETE)

User

GET /users : Get users list --- GET /users/{userID} : Get specific user information --- POST /users : Create an user with body {'pseudo': pseudo, 'mail': mail, 'password': password} --- DELETE /users/{userID} : Delete an user