Skip to main content

I defined one dynamic parameter in RAML:

/borrowers:

/{lastName:

displayName: Last Name

uriParameters:

lastName:

type: string

example: "Green"

 

How to define more uri parameters?

If I change RAML what is the best way to update api project in anypoint studio?

Thanks,

Polina

4 answers
  1. Jan 11, 2017, 5:17 PM

    So, how do you want to design your uriParam ? you need specify your url how you need to implement your multiple uriParas ...

    An example will be :-

     

    /borrowers/{lastName}/{firstName}:

    displayName: lastName

    uriParameters:

    lastName:

    displayName: lastName

    type: string

    example: "Green"

    firstName:

    displayName: firstName

    type: string

    example: "Red"

    get:

    description: Test method

     

    ** *"If I change RAML what is the best way to update api project in anypoint studio? "***

    To answer your next question, you need to select your RAML file in your Anypiint Studio under the `src/main/api` path, right click on it, then go to the mule in the menu and select Generate flows from Rest api as follows:-

     

    So, how do you want to design your uriParam ? you need specify your url how you need to implement your multiple uriParas ...

     

     

    It will re-generate the flows again

0/9000