6 Commits (2e233f994f4425b4f37232f3776454a638f97b7b)

Author SHA1 Message Date
Peery 2e233f994f Introduced art description
Added art description and corresponding tests. Each art entry can have their own description now and the models and tests have been altered to cover them too.
3 years ago
Peery 9fe017a6e3 Introduced TagCategory, bugfixes
Fixed several bugs from previous commits (Bad distribution of changes across multiple commits).
Introduced striping of string fields before send back as replies in main.py.
Implemented POST and DELETE calls for /artnet/metadata/category
Implemented tests for the new calls.
3 years ago
Peery 25c18651e4 Updated database.py
Renamed several DB tables to fit schema change.
Introduced DBCollection to fit schema change.
Added DBTagCategory.tags.
Changed return values to DB objects instead of single fields
3 years ago
Peery b8e07eb528 Introduced URL encoding, Art2Presence relations
URL parameters are now URL decoded by the webservice
The tests now URL encode the parameters for every request.

Art2Presence relations are now creatable with POST requests to /artnet/metadata/art and listing the presences in the body.

Art2Presence tests have been introduced with relate_art.py

Also updated column name artist.description artist.name to fit a db schema update.
3 years ago
peery f2821c561e Added POST, DELETE API for presences, Fixed Cascade Issues, Added generic entry listings
Implemented a way to create, update and delete presences over the API.
Implemented code to list >ALL< artists similar to Art entries. Should be secured against requesting the entire database at some point.

Added debug prints to all API calls for clearer logging
3 years ago
Peery 442cefc834 Basic Webservice
Roughly working webservice API working with SQLAlchemy and FastAPI.
Currently only GET queries are implemented.
4 years ago