question

MaraLuzMicozzi-8743 avatar image
0 Votes"
MaraLuzMicozzi-8743 asked JayaC-MSFT edited

Azure API Management - Request body examples

In my APIs list of my APIM I have a POST operation that changes functionality according to the parameters on its request body. To represent that information on my developer portal I tried to add multiples examples to the operation but I can't do that. I also tried with the definition, but it only allows one example. How Can I add multiples examples or represent some way this multiples uses of this operation? Thanks

azure-api-management
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @MaraLuzMicozzi-8743, Welcome to Microsoft QnA. Thank you for the question. We will review and update at the earliest.

0 Votes 0 ·

1 Answer

JayaC-MSFT avatar image
0 Votes"
JayaC-MSFT answered JayaC-MSFT edited

Hello @MaraLuzMicozzi-8743, Apologies for the delay in response. You should be able to add multiple samples:

115906-image.png


https://stackoverflow.com/questions/65696387/how-can-i-pass-body-parameters-to-api-post-operation-using-api-management-action

If you are still encountering the issue I would request you to open a support ticket with Microsoft Support if you have a subscription which allows you to do so.


image.png (237.4 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Perfect, thanks for the answer. Currently I import my APIs from OpenAPI, it is possible to set my json file so when I import it Azure understand and add this multiples samples?, or I have to do it manually on my Azure APIM as you explained above after import?

0 Votes 0 ·
JayaC-MSFT avatar image JayaC-MSFT MaraLuzMicozzi-8743 ·

Yes, you 'll add these.

If the answer helped, please "Accept the answer" and "Up-vote" so that it helps others in the community.

0 Votes 0 ·

Thanks JayaC, I accepted the answer, but could you reply my last question? thanks

0 Votes 0 ·
Show more comments