arazzo: 1.0.1 info: title: Postman Triage a Private API Network Request summary: List pending network requests, then approve the oldest one and confirm the catalog. description: >- Network admins approve or deny requests to add elements to the private API network. This workflow lists pending requests, approves the first pending one, and re-lists the network elements to confirm the catalog reflects the approval. Each step spells out its request inline so the flow can be read and executed without opening the underlying OpenAPI description. version: 1.0.0 sourceDescriptions: - name: privateApiNetworkApi url: ../openapi/postman-private-api-network-api-openapi.yml type: openapi workflows: - workflowId: triage-network-request summary: Approve the first pending network request and verify the catalog. description: >- Lists pending requests to add elements to the private API network, approves the first one, and re-lists the network elements to confirm. inputs: type: object properties: limit: type: integer description: Maximum number of pending requests to fetch. default: 10 steps: - stepId: listPendingRequests description: >- List pending requests to add elements to the private API network and take the first one. operationId: getNetworkRequests parameters: - name: status in: query value: pending - name: limit in: query value: $inputs.limit successCriteria: - condition: $statusCode == 200 outputs: requestId: $response.body#/requests/0/id - stepId: approveRequest description: >- Approve the first pending network request. operationId: approveNetworkRequest parameters: - name: requestId in: path value: $steps.listPendingRequests.outputs.requestId successCriteria: - condition: $statusCode == 200 - stepId: confirmCatalog description: >- Re-list the network elements to confirm the approved element is now in the catalog. operationId: getPrivateNetworkElements parameters: - name: type in: query value: collection successCriteria: - condition: $statusCode == 200 outputs: elements: $response.body#/elements outputs: approvedRequestId: $steps.listPendingRequests.outputs.requestId elements: $steps.confirmCatalog.outputs.elements