简体   繁体   中英

Mocking API for delete operation in Azure API Management

I want to create a mocking api with delete operation in azure api management. can anyone help me?

Policy:

<policies>
<inbound>
    <base />
    <mock-response status-code="200" content-type="application/json" />
</inbound>
<backend>
    <base />
</backend>
<outbound>
    <base />
    <mock-response status-code="200" content-type="application/json" />
</outbound>
<on-error>
    <base />
    <mock-response status-code="200" content-type="application/json" />
</on-error>

OpenApi:

delete:
  summary: DELETE (200)
  description: '/dev/null for delete operations (write), returns 200 - OK'
  operationId: delete
  responses:
    '200':
      description: 'OK'
      

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM