generated from FHDA/.github
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
The previous version of API is a bit chaotic on reponse bodies, so now I have made the function generate_response in src/utils.py, which takes in data, code, and an optional header. This function will use json.dumps to put the data parameter into the content section of the response body and give the response a corresponding status code.
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation