naftiko: 1.0.0-alpha2 info: label: Azure API Management REST API — ApiPolicy description: 'Azure API Management REST API — ApiPolicy. 5 operations. Lead operation: Microsoft Azure API Management ApiPolicy_ListByApi. Self-contained Naftiko capability covering one Microsoft Azure Api Management business surface.' tags: - Microsoft Azure Api Management - ApiPolicy created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_AZURE_API_MANAGEMENT_API_KEY: MICROSOFT_AZURE_API_MANAGEMENT_API_KEY capability: consumes: - type: http namespace: rest-apipolicy baseUri: https://management.azure.com description: Azure API Management REST API — ApiPolicy business capability. Self-contained, no shared references. resources: - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies operations: - name: apipolicylistbyapi method: GET description: Microsoft Azure API Management ApiPolicy_ListByApi outputRawFormat: json outputParameters: - name: result type: object value: $. - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId} operations: - name: apipolicygetentitytag method: HEAD description: Microsoft Azure API Management ApiPolicy_GetEntityTag outputRawFormat: json outputParameters: - name: result type: object value: $. - name: apipolicyget method: GET description: Microsoft Azure API Management ApiPolicy_Get outputRawFormat: json outputParameters: - name: result type: object value: $. - name: apipolicycreateorupdate method: PUT description: Microsoft Azure API Management ApiPolicy_CreateOrUpdate outputRawFormat: json outputParameters: - name: result type: object value: $. - name: apipolicydelete method: DELETE description: Microsoft Azure API Management ApiPolicy_Delete outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.MICROSOFT_AZURE_API_MANAGEMENT_API_KEY}}' exposes: - type: rest namespace: rest-apipolicy-rest port: 8080 description: REST adapter for Azure API Management REST API — ApiPolicy. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-apimanagement/service/{servicename}/apis/{apiid}/policies name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof. operations: - method: GET name: apipolicylistbyapi description: Microsoft Azure API Management ApiPolicy_ListByApi call: rest-apipolicy.apipolicylistbyapi outputParameters: - type: object mapping: $. - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-apimanagement/service/{servicename}/apis/{apiid}/policies/{policyid} name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof. operations: - method: HEAD name: apipolicygetentitytag description: Microsoft Azure API Management ApiPolicy_GetEntityTag call: rest-apipolicy.apipolicygetentitytag outputParameters: - type: object mapping: $. - method: GET name: apipolicyget description: Microsoft Azure API Management ApiPolicy_Get call: rest-apipolicy.apipolicyget outputParameters: - type: object mapping: $. - method: PUT name: apipolicycreateorupdate description: Microsoft Azure API Management ApiPolicy_CreateOrUpdate call: rest-apipolicy.apipolicycreateorupdate outputParameters: - type: object mapping: $. - method: DELETE name: apipolicydelete description: Microsoft Azure API Management ApiPolicy_Delete call: rest-apipolicy.apipolicydelete outputParameters: - type: object mapping: $. - type: mcp namespace: rest-apipolicy-mcp port: 9090 transport: http description: MCP adapter for Azure API Management REST API — ApiPolicy. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-azure-api-management-apipolicy description: Microsoft Azure API Management ApiPolicy_ListByApi hints: readOnly: true destructive: false idempotent: true call: rest-apipolicy.apipolicylistbyapi outputParameters: - type: object mapping: $. - name: microsoft-azure-api-management-apipolicy-2 description: Microsoft Azure API Management ApiPolicy_GetEntityTag hints: readOnly: false destructive: false idempotent: false call: rest-apipolicy.apipolicygetentitytag outputParameters: - type: object mapping: $. - name: microsoft-azure-api-management-apipolicy-3 description: Microsoft Azure API Management ApiPolicy_Get hints: readOnly: true destructive: false idempotent: true call: rest-apipolicy.apipolicyget outputParameters: - type: object mapping: $. - name: microsoft-azure-api-management-apipolicy-4 description: Microsoft Azure API Management ApiPolicy_CreateOrUpdate hints: readOnly: false destructive: false idempotent: true call: rest-apipolicy.apipolicycreateorupdate outputParameters: - type: object mapping: $. - name: microsoft-azure-api-management-apipolicy-5 description: Microsoft Azure API Management ApiPolicy_Delete hints: readOnly: false destructive: true idempotent: true call: rest-apipolicy.apipolicydelete outputParameters: - type: object mapping: $.