Pandey, Rijul (Developer) Thanks for posting your question in Microsoft Q&A. Based on the description above, you have added a query parameter in APIM and looking to know how to add an example so that it gets displayed in the developer portal.
Navigate to APIM -> API -> Operations -> Frontend edit -> OpenAPI specification view and then in the parameter section, add an example section (outside schema) like below:
"get": {
"summary": "Retrieve resource",
"description": "A demonstration of a GET call on a sample resource. It is handled by an \"echo\" backend which returns a response equal to the request (the supplied headers and body are being returned as received).",
"operationId": "retrieve-resource",
"parameters": [{
"name": "queryparam1",
"in": "query",
"schema": {
"type": "string"
},
"example": "value1"
}],
"responses": {
"200": {
"description": "Returned in all cases."
}
}
}
Then save the changes and refresh the developer portal. You should be able to see the value displayed in the Example section like below:
I hope this helps and let me know if any questions. If your scenario is different, please share the screenshot of developer portal, that will help in understanding better.
If you found the answer to your question helpful, please take a moment to mark it as Yes
for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.