File from Published REST Service with POST Method

0
Dear experts, we have a scenario where, we are Publishing a REST service with POST Method. We are using 9.10.0 Version of Studio Pro. In this, we want to receive some data that we are going to store as a entry in one entity suppose A. Also we will be receiving a pdf file/List of files as a Form Data  which we are going to store in another entity say B.  A and B are associated with each other.   Please help me with Parameters configuration of REST Service. Which type we can select Body/Form? How we can parse received data (String and File) in Mendix Objects
asked
1 answers
0

Hi Vishal,

Please check comments below.

  • Please help me with Parameters configuration of REST Service. Which type we can select Body/Form?
    • If your API takes JSON as request body, you can pass JSON body as below:

                     

 

  • How we can parse received data (String and File) in Mendix Objects
    • First based on your API response, create JSON Structure and then create Import Mapping
    • You can use, Import Mapping on your API response.
answered