In my project, I'm using RestTempate in a client app to access existing service. Service itself returns a list of valid URI templates, and one that I'm trying to use looks like

```
http://corpdomain.com/service{?idparam}

```

At runtime, it should expand to something like

```
http://corpdomain.com/service?idparam=12345

```

Problem is, RestTemplate's getForObject() does not know what to do with "{?idparam}" notation. If I feed it the URI
`http://corpdomain.com/service?idparam={idparam}`, everything works fine. But this is not the URI template that server returns to me.

Do you know how to make RestTemplate.getForObject() working with {?idparam} type notation in template?

Do you know if there is ANY documentation out there regarding the syntax of URI templates?

I'm currently going through spring's java sources and eventually should be able to figure out the solution. However, what really bugs me is the lack of documentation or third party information.

Thanks everybody in advance!