classtranscribe / FrontEnd

The React + Redux Frontend for ClassTranscribe
https://classtranscribe.illinois.edu
Other
26 stars 28 forks source link

Implement TaskController and swag for a new Python web api #601

Open angrave opened 1 year ago

angrave commented 1 year ago

Challenge: Convert one C# controller into python https://github.com/classtranscribe/WebAPI/blob/staging/ClassTranscribeServer/Controllers/TaskController.cs The current C# api is at /api The python api could be at /pyapi and the swag api at pyswag for example.

See "RunEverything.md" in pyapi Review pyapi code Move existing python api to 'unused/' folder Update requirements.txt Learn SQLAlchemy2. Decide on how to represent database tables. In C# we define the tables as OO -

https://github.com/classtranscribe/WebAPI/blob/0884d002d9596bce1ab5115bbfb11a6a427096bf/ClassTranscribeDatabase/Models/Models.cs#L299

Decide how to make python unit + system tests? Examples in C#, https://github.com/classtranscribe/WebAPI/tree/0884d002d9596bce1ab5115bbfb11a6a427096bf/UnitTests/ClassTranscribeServer/ControllerTests