REST API for Workspaces #2890
Jake Ceballos opened 4 days ago

Basic CRUD operations for workspaces. Read endpoint suitable for near term needs.

  • Robin Shen changed fields 3 days ago
    Name Previous Value Current Value
    Assignee
    robin
    wh
  • Work Horse referenced from pull request 3 days ago
  • Work Horse commented 3 days ago

    Opened pr #89 with workspace REST API support.

  • Work Horse commented 3 days ago

    Implemented REST API for workspaces at /~api/workspaces:

    • GET /workspaces/{id} — get workspace by id
    • GET /workspaces — query workspaces (same query syntax as the workspaces page)
    • POST /workspaces — create workspace (projectId, commitHash, specName, optional branch/issueId/pullRequestId)
    • POST /workspaces/{id}/reprovision — reprovision an inactive workspace
    • DELETE /workspaces/{id} — delete workspace

    Permissions match the UI: read/list/create require Create Workspaces; delete/reprovision require Manage Workspaces or ownership. Workspace tokens are not exposed.

  • OneDev commented 2 days ago

    State changed as build OD-7846 is successful

  • OneDev changed state to 'Closed' 2 days ago
    Previous Value Current Value
    Open
    Closed
1/1
Type
Improvement
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-2890
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover