For the complete documentation index, see llms.txt. This page is also available as Markdown.

Mock Workspaces

List mock workspaces

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Workspace summaries

No content

get/sfp/api/mocks/workspaces

No content

Activate (or re-activate) a mock workspace

post

Registers WireMock stubs for every service in the definition. Re-activation replaces the baseline but preserves session overrides by service name.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
workspacestringRequired
Responses
201

Workspace activated; returns per-service stub counts and data-plane paths

No content

post/sfp/api/mocks/workspaces

No content

Get a workspace with effective rules per service

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspacestringRequired
Responses
200

Full workspace state

No content

get/sfp/api/mocks/workspaces/{workspace}

No content

Tear down a workspace (stubs + record)

delete

restore=true reverts switched credentials first; force=true tears down even when restore fails.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspacestringRequired
Query parameters
restorestringRequired
forcestringRequired
Responses
200

Workspace removed

No content

delete/sfp/api/mocks/workspaces/{workspace}

No content

Set the session rule override for a service (applies immediately)

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspacestringRequired
servicestringRequired
Body
Responses
200

Override applied and stubs re-registered

No content

put/sfp/api/mocks/workspaces/{workspace}/services/{service}/rules

No content

Clear the session override; baseline re-applies

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspacestringRequired
servicestringRequired
Responses
200

Override cleared and stubs re-registered

No content

delete/sfp/api/mocks/workspaces/{workspace}/services/{service}/rules

No content

Incoming-request journal for the workspace

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspacestringRequired
Query parameters
servicestringRequired
sincestringRequired
limitstringRequired
Responses
200

Journal entries (newest first), wasMatched flags unanswered callouts

No content

get/sfp/api/mocks/workspaces/{workspace}/requests

No content

Export effective rules as yaml (graduate session edits to the repo)

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspacestringRequired
servicestringRequired
Responses
200

rules yaml

No content

get/sfp/api/mocks/workspaces/{workspace}/services/{service}/rules.yaml

No content

Record which org credentials were switched to the mock data plane

post

Called after the org-side switch so restore works from anywhere — first recorded original endpoint wins.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspacestringRequired
Responses
201

Switch state recorded

No content

post/sfp/api/mocks/workspaces/{workspace}/switch-state

No content

Restore switched credentials to their original endpoints, org-side

post

Resolves review-environment auth from the workspace context; force continues past per-credential failures.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workspacestringRequired
Responses
200

Per-credential restore outcome

No content

post/sfp/api/mocks/workspaces/{workspace}/restore

No content

Last updated

Was this helpful?