Configuring REST based URI template for a new Resource?

Not applicable

Does APIGEE support configuring URI template while adding a new Resource? I couldn't find it anywhere in the docs. Can anyone please point me to the right documentation.

Below are the some examples of URI templates that may be followed by a querystring.

/weather/{state}?forecast={day}

/weather/{state}/{city}?forecast={day}

/weather/{state}/{city}/{activity}

Thanks,

Vinay.

Solved Solved
0 1 348
1 ACCEPTED SOLUTION

Not applicable

When defining your resources, these would all be acceptable:

/weather/{state}

/weather/{state}/{city}

/weather/{state}/{city}/{activity}

However, the following or variants are not:

/weather/{state}?forecast={day}

You can, however setup your conditional flow to check for the existence of a query parameter.

I hope that helps. Please let us know if you have further questions.

View solution in original post

1 REPLY 1

Not applicable

When defining your resources, these would all be acceptable:

/weather/{state}

/weather/{state}/{city}

/weather/{state}/{city}/{activity}

However, the following or variants are not:

/weather/{state}?forecast={day}

You can, however setup your conditional flow to check for the existence of a query parameter.

I hope that helps. Please let us know if you have further questions.