Skip to content

ChristianNomena/challenge_yourself_api_old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

The official API for Challenge Yourself App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages