Github user neykov commented on the pull request:
https://github.com/apache/incubator-brooklyn/pull/1140#issuecomment-171708759
@CMoH thanks for figuring this out so far.
A quick observation from scanning through the code. The `rest-api` project
is used for a client implementation in addition to the server (see
https://github.com/apache/incubator-brooklyn/tree/master/brooklyn-server/rest/rest-client).
This means that there is actual java code compiling against the rest API.
Adding a `@Context UriInfo ui` parameter changes the signatures and also
doesn't make sense for a client-based API. Can we use a class field instead of
a parameter as done in some of the classes? This will have two benefits:
* Remove the bulk of the changes on the API (getting us closer to reusing
the same classes)
* Keeping the client API clean of server-side "stuff".
wdyt?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---