Spec0docsCLI 0.7.0
API Explorer

List parsed operations from the spec

Returns the operations parsed from the registered OpenAPI spec when the mock server was created. Useful for the UI Endpoints tab — provides HTTP method, path, and operationId.

GET
/mock-server/servers/{mockServerId}/spec-operations

Path Parameters

mockServerId*string
Formatuuid

Response Body

application/json

curl -X GET "http://localhost:8080/mock-server/servers/497f6eca-6276-4993-bfeb-53cbbbba6f08/spec-operations"
[
  {
    "operationId": "string",
    "httpMethod": "GET",
    "path": "/users/{id}",
    "successStatusCode": "200",
    "createdAt": "2019-08-24T14:15:22Z"
  }
]
Empty
Was this helpful?