Fully functional example built on top of aioli-flavors/rest-rdbms.
Requires Python 3.9+, Git, and Poetry.
$ git clone https://github.com/rbw/songmeta.git
$ cd songmeta
$ poetry update
The application requires an SQLAlchemy-supported relational database. This example uses pg.ARRAY in AlbumModel, making it compatible with Postgres only.
A docker-compose file for running a Postgres server is available in the project root.
$ docker-compose up
$ poetry shell
$ python -m songmeta
$ curl http://localhost:5000/albums
$ curl -X POST --data '{"title": "test", "release_date": "2035-01-20", "stores": ["APPLE", "YOUTUBE"], "tracks": ["TEST000000001", "TEST000000002"], "upc": "00000000000005"}' http://localhost:5000/albums
$ curl http://localhost:5000/albums/00000000000005