Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 917 Bytes

File metadata and controls

41 lines (27 loc) · 917 Bytes

flask-application

Database

How to create db.sqlite file

sqlite3 db.sqlite < schema.sql

REST API

Select example

Insert example

  • Add new group

curl -X POST -H "Content-Type: application/json" -d '{ "seansId": "2" }' http://localhost:5000/groups

  • Add new person to group

curl -X POST -H "Content-Type: application/json" -d '{ "groupsId": "1", "usersId": "3" }' http://localhost:5000/participants

Update example

curl -X POST -H "Content-Type: application/json" -d '{ "groupsId": "1", "usersId": "1", "active": "0" }' http://localhost:5000/deleteParticipant