I need to add examples in API details page. so i created a new nav item in API details side bar but i have no idea how to show examples page of that specific API in API details page.
i screenshot i attached i created nav item named Example and want to show some details in details section on right side just like other nav items of API.
Thank you for your response. I checked the documentation section but there is no option to add examples only we can upload a file, but i want to display a textual data instead of downloadable file.
Although there is an option to add examples in component section but when i publish the API component section is not listed or visible on Developer portal
Actually what i need to add is not the sample request. what i need is to add Code Samples to illustrate how to consume API in different Programming languages.
something like this. And i need it under every resource of the API and it should be specific to that particular resource. I can create separeate pages in developer portal for every resource sample but issue is i am not able to bind those pages to specific API as the URL is dynamically generated.
something like this
/portal/apis/e8845b52-3c27-49cc-8f2c-c8c6a/resources/44fa6b90-7b9c-4d-6be36c8eb1ff/GET
hi @muhammad.usman22,
It can be implemented but the complexity will be on higher side.
The approach should be like create whole API details page from scratch and while designing it you can provide the sample\Code you want to have it at each resource level.
As far as I am aware of you need to create the web component for it.