Skip to content

Initial CRUD API for workspaces #620

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 17, 2025
Merged

Conversation

JAORMX
Copy link
Contributor

@JAORMX JAORMX commented Jan 16, 2025

This adds a simple and unimplemented REST API for workspaces. Workspaces
will be the base for all other resources in terms of REST resource
mapping, so these go first.

These are initially left entirely unimplemented as
#600 needs to merge

Signed-off-by: Juan Antonio Osorio [email protected]

@JAORMX JAORMX requested review from aponcedeleonch, lukehinds and jhrozek and removed request for aponcedeleonch January 16, 2025 14:34
@JAORMX JAORMX force-pushed the workspace-api branch 2 times, most recently from a180108 to 2cf1dda Compare January 17, 2025 07:31
Copy link
Contributor

@lukehinds lukehinds left a comment

Choose a reason for hiding this comment

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

I wonder if we should also have the dashboard APIs under api (can be done in a different PR).

Do you think we should introduce api version handling while we have the opportunity and set this as api/v1 ?

aponcedeleonch
aponcedeleonch previously approved these changes Jan 17, 2025
aponcedeleonch
aponcedeleonch previously approved these changes Jan 17, 2025
@JAORMX JAORMX force-pushed the workspace-api branch 2 times, most recently from b73e08e to a668d57 Compare January 17, 2025 09:23
@JAORMX
Copy link
Contributor Author

JAORMX commented Jan 17, 2025

Do you think we should introduce api version handling while we have the opportunity and set this as api/v1 ?

I'm already doing this, we actually have /api/v1

See:

app.include_router(v1, prefix="/api/v1", tags=["CodeGate API"])

Versioning APIs is a best practice which I like to follow 😄

This adds a simple and unimplemented REST API for workspaces. Workspaces
will be the base for all other resources in terms of REST resource
mapping, so these go first.

These are initially left entirely unimplemented as
stacklok#600 needs to merge

Signed-off-by: Juan Antonio Osorio <[email protected]>
@JAORMX JAORMX merged commit 7e4b963 into stacklok:main Jan 17, 2025
3 checks passed
JAORMX added a commit to JAORMX/codegate that referenced this pull request Jan 17, 2025
stacklok#633 accidentally deleted some
functions that were introduced by stacklok#620

This re-introduces them.

Signed-off-by: Juan Antonio Osorio <[email protected]>
JAORMX added a commit that referenced this pull request Jan 17, 2025
#633 accidentally deleted some
functions that were introduced by #620

This re-introduces them.

Signed-off-by: Juan Antonio Osorio <[email protected]>
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.

3 participants