MCPcopy Create free account
hub / github.com/observablehq/framework / getWorkspaceProjects

Method getWorkspaceProjects

src/observableApiClient.ts:148–155  ·  view source on GitHub ↗
(workspaceLogin: string)

Source from the content-addressed store, hash-verified

146 }
147
148 async getWorkspaceProjects(workspaceLogin: string): Promise<GetProjectResponse[]> {
149 const pages = await this._fetch<PaginatedList<GetProjectResponse>>(
150 new URL(`/cli/workspace/@${workspaceLogin}/projects`, this._apiOrigin),
151 {method: "GET"}
152 );
153 // todo: handle pagination?
154 return pages.results;
155 }
156
157 async getDeploy(deployId: string): Promise<GetDeployResponse> {
158 return await this._fetch<GetDeployResponse>(new URL(`/cli/deploy/${deployId}`, this._apiOrigin), {method: "GET"});

Callers 2

promptDeployTargetFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected