Closed renatovieiradesouza closed 5 years ago
Hi @renasti You can do something like the following given you have chosen embedded ruby as the body type:
<%=
result = { document: @parameters[:document] }
if @parameters[:document] == '092'
result[:name] = 'Renato'
end
result.to_json
%>
How to configure fot accept parameter empty? My ideia is return default value in case I need create a mock example: /user/v1/user-credential with params: document = 123 with return:
But, i need create same mock name /user/v1/user-credential with return alternative, example: with params document = 092 with return
How to make this? I look the documentation, but not found solution.