Skip to content

refactor: split api.py by domain#28

Merged
Perfect5th merged 1 commit intocanonical:mainfrom
st3v3nmw:refactor-split-api-module
Jan 29, 2026
Merged

refactor: split api.py by domain#28
Perfect5th merged 1 commit intocanonical:mainfrom
st3v3nmw:refactor-split-api-module

Conversation

@st3v3nmw
Copy link
Member

I wanted to add some endpoints for confdb & confdb-control but noticed api.py has grown to the point where it's become unwieldy, sitting at 800+ lines of source and ~2,500 lines of tests in a single file. Before adding more, I've split it into domain-specific modules under snap_http/api/ so each part of the snapd API lives in its own file.

No functional changes, just moved code around.

@st3v3nmw st3v3nmw force-pushed the refactor-split-api-module branch from 2f8578f to aee971e Compare January 29, 2026 14:14
@st3v3nmw st3v3nmw marked this pull request as ready for review January 29, 2026 14:21
Copy link
Contributor

@Perfect5th Perfect5th left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks for doing this. I agree it was getting a little long.

@Perfect5th Perfect5th merged commit dc65311 into canonical:main Jan 29, 2026
4 checks passed
@st3v3nmw st3v3nmw deleted the refactor-split-api-module branch January 30, 2026 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants