Comp-490-SeniorProject / site

MIT License
0 stars 1 forks source link

Basic API #31

Closed MarkKoz closed 2 years ago

MarkKoz commented 2 years ago

Let's merge this for now. Even though it's not 100% done, it's at a more or less useable state. We should try to integrate our changes into the main branch more often rather than let branches sit around for a long time until they're totally done.

Refer to the models directory to see all the models that have been added. These correspond to what's stored in the database. The API is really simple for now; it just does the basic CRUD operations. As we figure out more of how things will tie into the hardware, the API will be fleshed out more.

Note that the API is already configured to use session authentication, so that may be awkward to use when testing the API directly with requests. Might consider temporarily disabling authentication until we have the front-end ready for that.