mirror of
https://github.com/EddieTheCubeHead/Stagnum.git
synced 2026-04-26 22:25:52 +03:00
[PR #48] [MERGED] 10 create rudimentary api interface #254
Labels
No labels
bug
bug
client
design
documentation
feature
feature
infrastructure
pull-request
ready for development
server
server
spike
technical work
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Stagnum#254
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/EddieTheCubeHead/Stagnum/pull/48
Author: @EddieTheCubeHead
Created: 1/29/2024
Status: ✅ Merged
Merged: 1/30/2024
Merged by: @EddieTheCubeHead
Base:
master← Head:10-create-rudimentary-api-interface📝 Commits (10+)
3e679d010 Restructure FastAPI files, add some basic models and routesfe77cefMore API routes and models2550669Revised database basics. Out of ticket scope but this should be done asap so others can fix the problem59e0b1210 update README with guide on viewing API docs09216fc10 add limit and offset for search routes9c919e5Merge branch '11-setup-alembic-migration-engine' into 10-create-rudimentary-api-interfacef18bd16Merge branch 'master' into 10-create-rudimentary-api-interface59b6572Merge branch 'master' into 10-create-rudimentary-api-interfacea2090e510 add missing field to README table of contents99a3a58Remove extra line from pool/init📊 Changes
18 files changed (+201 additions, -15 deletions)
View changed files
📝
server/README.md(+6 -0)📝
server/src/alembic/versions/af9978211950_add_user_table.py(+8 -6)📝
server/src/api/application.py(+10 -0)➕
server/src/api/auth/__init__.py(+1 -0)➕
server/src/api/auth/models.py(+9 -0)➕
server/src/api/auth/routes.py(+18 -0)➕
server/src/api/common/__init__.py(+0 -0)➕
server/src/api/common/models.py(+6 -0)➕
server/src/api/pool/__init__.py(+1 -0)➕
server/src/api/pool/models.py(+26 -0)➕
server/src/api/pool/routes.py(+28 -0)➖
server/src/api/routes.py(+0 -6)➕
server/src/api/search/__init__.py(+1 -0)➕
server/src/api/search/models.py(+49 -0)➕
server/src/api/search/routes.py(+33 -0)📝
server/src/database/entities.py(+3 -1)📝
server/src/main.py(+1 -1)📝
server/test/conftest.py(+1 -1)📄 Description
Better file structure with routers: no longer need to import application from routes (anti-pattern, bad coding by me)
Created a base for the known routes required for MVP release. This includes route skeleton and input + output data models.
Found out we need to store spotify data differently, modified original migration to accomodate that. This was not compatible with the first migration AND we are early in the project so it was done like this to reduce migration script amount. (Other option was to create a migration that drops the table and keep the first migration.)
In the future I will not modify existing migration, neither should anyone else.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.