Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Initial CRUD API for workspaces#620

Merged
JAORMX merged 1 commit into
stacklok:mainstacklok/codegate:mainfrom
JAORMX:workspace-apiJAORMX/codegate:workspace-apiCopy head branch name to clipboard
Jan 17, 2025
Merged

Initial CRUD API for workspaces#620
JAORMX merged 1 commit into
stacklok:mainstacklok/codegate:mainfrom
JAORMX:workspace-apiJAORMX/codegate:workspace-apiCopy head branch name to clipboard

Conversation

@JAORMX

@JAORMX JAORMX commented Jan 16, 2025

Copy link
Copy Markdown
Contributor

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 ozz@stacklok.com

@JAORMX JAORMX requested review from aponcedeleonch, jhrozek and lukehinds 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

@lukehinds lukehinds left a comment

Copy link
Copy Markdown

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

JAORMX commented Jan 17, 2025

Copy link
Copy Markdown
Contributor Author

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 <ozz@stacklok.com>
@JAORMX JAORMX merged commit 7e4b963 into stacklok:main Jan 17, 2025
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 <ozz@stacklok.com>
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 <ozz@stacklok.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.