Error while trying to add more parameters into body of exposed Rest API

I'm trying to build a Rest API through Outsystems (Newest Version) and getting error while trying to add more than one parameters into body of request. 


"Method can have only one input parameter with 'Receive In' property set to 'Body' "


Right now, I'm using header instead Body as a workaround and prefer to make it more elegant and standard. What are the steps I can use to resolve this issue?



Solution

Hi Daniel,

You can use a structure or entity as the type of the input param. That will give what you want.

Please check the below example using the System Entity User as an Input Parameter type.



Cheers,

Tiago.

Solution

Thank you so much. It worked!



Tiago Gafeira wrote:

Hi Daniel,

You can use a structure or entity as the type of the input param. That will give what you want.

Please check the below example using the System Entity User as an Input Parameter type.



Cheers,

Tiago.