Skip to main content

create_workspace

Function create_workspace 

Source
pub fn create_workspace(
    root: &Path,
    platform: &Platform,
    base_url: &str,
    authenticated_user: &str,
    body: &[u8],
) -> (u16, String)
Expand description

Handles POST /api/workspace; body {"repo": "owner/repo", "name": "<workspace>"}. Returns (status, json_body) like the rest of the platform API. base_url is the daemon’s own address, used as the workspace’s origin so pushes stay on the sequenced path.