StevenTompary123 / TTRPGsimulation

Table Top Role Playing game character builder and damage simulation.
0 stars 1 forks source link

API: Add simple database #4

Open NathanEne opened 4 months ago

NathanEne commented 4 months ago

First create a simple postgres database on your local machine. Then expand the 1 endpoint API to have 2 endpoints one takes POST requests which adds a simple entry into a table in the database and returns a id. The second endpoint is a GET request which returns the data in the table at that id or a 404 not found if it does not exist yet, Interact with the database in python using psycopg2

This ticket is considered complete when the above works :)