feat: resolve Workspace Plugin config into immutable execution plans
This commit is contained in:
@@ -1213,6 +1213,20 @@ pub trait ServerApi {
|
||||
#[path] workspace_id: String,
|
||||
) -> Result<WorkspacePromptProjection, RepositoryApiError>;
|
||||
|
||||
#[post(
|
||||
"/api/w/{workspace_id}/config/source-tree/preview",
|
||||
status = 200,
|
||||
error_status = 400,
|
||||
additional_error_statuses = [401, 403, 404, 409, 500],
|
||||
bearer_auth = true,
|
||||
browser_auth = true
|
||||
)]
|
||||
async fn workspace_config_tree_preview(
|
||||
&self,
|
||||
#[path] workspace_id: String,
|
||||
#[body] request: ConfigCommitRequest,
|
||||
) -> Result<WorkspaceConfigTreeResponse, RepositoryApiError>;
|
||||
|
||||
#[post(
|
||||
"/api/w/{workspace_id}/config/source-tree/commit",
|
||||
status = 201,
|
||||
@@ -12806,6 +12820,11 @@ mod tests {
|
||||
HttpMethod::Get,
|
||||
"/api/w/{workspace_id}/config/projections/prompts",
|
||||
),
|
||||
(
|
||||
"workspace_config_tree_preview",
|
||||
HttpMethod::Post,
|
||||
"/api/w/{workspace_id}/config/source-tree/preview",
|
||||
),
|
||||
(
|
||||
"workspace_config_tree_commit",
|
||||
HttpMethod::Post,
|
||||
|
||||
Reference in New Issue
Block a user