How to Specify Required Fields in Swagger for Mendix REST Services

0
Hello everyone, I am working on a REST service in Mendix and I want to ensure that certain fields are shown as required in the Swagger documentation. However, I don't see directly how I can set this up in Mendix. Does anyone have tips or a solution to make required fields visible in the Swagger documentation? All suggestions are welcome! Thank you in advance for your help!
asked
2 answers
0

Hi Yusuf,

If you want to make required field in REST API, you have to use path parameters in REST API.

 

Check this article 

https://medium.com/@mohammad.saqib_1262/api-series-part-6-how-to-use-path-parameters-in-mendix-apis-8e414ea350c8

answered
0

To clarify, I am working on setting up a REST service in Mendix, and I am using a YAML file to configure our API in the Azure API Portal. My main challenge is making certain fields appear as required in the Swagger documentation generated from this YAML file. This requirement is not currently visible in the API Portal because the YAML file does not specify which fields are mandatory.

 

answered