Example Values in the API Swagger

0
Hi,   How to I add example values ​​like in the second photo to my API? I used Message_definitions and Json structure for export mapping. Then, I created a microflow like in the first photo. What should I do? My responses section currently looks like the third photo. Which part is missing?     
asked
4 answers
3

image.png

Under Example value column select the row you want to add an example value and it will be added to your API documentation. 

answered
3

You are seeing authentication information is missing or invalid probably because you didn't implement an authentication method.

Select requires authentication in your message definition and specify your authentication method. 

Here is how I did it: 

-Created a User role for the API in your application and call it on startup. 

-Customized APIAuthentication MF from OIDC module. 

Check below screenshot for messsage definition options. 

 

image.png

answered
1

image.pngThis is the section I was referring

answered
0

Hi,

Did you use some example values in your JSON which you are using for Message Definition?

 

answered