notebooks/workspaces/backend/api
Andy Stoneberg 639c24e81b
feat(ws): add @ID swag annotation to handlers (#488)
- added @ID annotations for all API routes to populate operationId Swagger attribute
- split GetWorkspacesHandler into 2 separate handlers to account for @ID needing to be unique-per-route
    - GetAllWorkspacesHandler now services GET /workspaces
    - GetWorkspacesByNamespaceHandler now services GET /workspaces/{namespace}
    - non-exported getWorkspacesHandler function contains all business logic that existed in GetWorkspacesHandler
- Adjusted test cases to align with the new handler names.

Signed-off-by: Andy Stoneberg <astonebe@redhat.com>
2025-07-31 17:18:49 +00:00
..
app.go feat(ws): add @ID swag annotation to handlers (#488) 2025-07-31 17:18:49 +00:00
auth.go feat(ws): add auth to backend (#202) 2025-02-11 20:21:28 +00:00
healthcheck_handler.go feat(ws): add @ID swag annotation to handlers (#488) 2025-07-31 17:18:49 +00:00
healthcheck_handler_test.go feat(ws): add WorkspaceCreate model to backend (#205) 2025-02-14 22:25:37 +00:00
helpers.go feat(ws): backend api to create wsk with YAML (#434) 2025-07-06 06:57:21 +00:00
logging.go feat(ws): add WorkspaceCreate model to backend (#205) 2025-02-14 22:25:37 +00:00
middleware.go feat(ws): introduce limits on HTTP body/header size (#195) 2025-02-05 20:54:38 +00:00
namespaces_handler.go feat(ws): add @ID swag annotation to handlers (#488) 2025-07-31 17:18:49 +00:00
namespaces_handler_test.go feat(ws): add WorkspaceCreate model to backend (#205) 2025-02-14 22:25:37 +00:00
response_errors.go feat(ws): backend api to create wsk with YAML (#434) 2025-07-06 06:57:21 +00:00
response_success.go feat(ws): add WorkspaceCreate model to backend (#205) 2025-02-14 22:25:37 +00:00
suite_test.go feat(ws): add ws counts to backend wsk model (#368) 2025-07-24 19:36:01 +00:00
swagger_handler.go feat(ws): add swagger api docs to backend (#206) 2025-03-03 02:28:36 +00:00
workspace_actions_handler.go feat(ws): add @ID swag annotation to handlers (#488) 2025-07-31 17:18:49 +00:00
workspace_actions_handler_test.go feat(ws): add workspace pause actions backend API (#340) 2025-07-24 20:05:02 +00:00
workspacekinds_handler.go feat(ws): add @ID swag annotation to handlers (#488) 2025-07-31 17:18:49 +00:00
workspacekinds_handler_test.go feat(ws): add @ID swag annotation to handlers (#488) 2025-07-31 17:18:49 +00:00
workspaces_handler.go feat(ws): add @ID swag annotation to handlers (#488) 2025-07-31 17:18:49 +00:00
workspaces_handler_test.go feat(ws): add @ID swag annotation to handlers (#488) 2025-07-31 17:18:49 +00:00