FoMS Experts

Forum / Mule 4

Mule 4
Mule 4

Stats: 2 topics, 3 messages

Newest topic:MuleSoft Certified Developer

Actual topic:MuleSoft Certified Developer

Last message:Matteo, Friday, 3.7.2020 / 16:28

TOPIC

Author of topic:Dragomir

Messages:2

Views:1589

<1>

DragomirGreen card

Dragomir

M / 45 years

Bulgaria

Level: Newbie / 3 posts

Posted: Friday, 22.5.2020 / 15:51

Topic: Boolean as a query parameter

Hi!

I will be receiving input through query parameters. One of these parameters is going to be boolean. I am using Postman to recreate the request. My doubt is how to define a boolean value in the Postman? Do I use something like myVar=1 or myVar=true or something else? How do I parse that boolean query parameter in a Mule app?

Thank you all for you help!

Caio S CavalcanteNo card

Caio S Cavalcante

28 years

Köln

Germany

Level: Newbie / 2 posts

Posted: Friday, 22.5.2020 / 16:59

Topic: Boolean as a query parameter

Hi Dragomir and welcome to FoMS!

Anything you send as a query parameter in the HTTP request is going to be received by the backend app (in this case Mule app) as a string. It is then your task in the Mule app to parse myVar=1 or myVar=true, as a boolean value.

<1>
  • HOT TOPICS
  • NEW TOPICS
  • MOST POPULAR
  • MY TOPICS
  • INVOLVED IN
  • FOLLOWED
Rules and regulations
Register now