Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore alignment with the Micro Profile Rest Client API #56

Closed
glassfishrobot opened this issue Mar 7, 2011 · 14 comments
Closed

Explore alignment with the Micro Profile Rest Client API #56

glassfishrobot opened this issue Mar 7, 2011 · 14 comments
Assignees
Milestone

Comments

@glassfishrobot
Copy link

As described in the JAX-RS 2.0 JSR (http://jcp.org/en/jsr/proposalDetails?id=339)::)

The most commonly requested feature for JAX-RS 2.0 is a client API: many if not all JAX-RS implementations provide some degree of client API support. This JSR will define two client APIs, both compatible with the REST style: a low level API using a builder pattern and a higher level one leveraging the former. Common security mechanisms will also be specified. The API will not define how HTTP client implementations, such as HttpUrlConnection or the Apache HTTP client library, will plug into the API. The API will support synchronous and asynchronous response processing. WebSocket or HTTP streaming processing of responses are out of scope for this JSR and will be handled in a future revision of JAX-RS.

This issue only covers the high-level client API.

Affected Versions

[2.0]

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Reported by robc

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
@mpotociar said:
Moving to the JAX-RS "ice-box" task log for the re-evaluation as part of a future major JAX-RS release preparations.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA JAX_RS_SPEC-51

@glassfishrobot
Copy link
Author

@glassfishrobot glassfishrobot self-assigned this Feb 10, 2018
@NiklasMehner
Copy link
Contributor

This ticket should be closed, since the client api has been implemented.

@mkarg
Copy link
Contributor

mkarg commented Feb 25, 2018

@NiklasMehner This is not true. What the EG decided back then was to have two API levels, low level and high level. What we delivered so far is only the low level API. So this ticket still is validly open.

@chkal
Copy link
Contributor

chkal commented Feb 25, 2018

Oh, interesting. What would a high level API look like? Something like the proxy client suggested on the list?

@mkarg
Copy link
Contributor

mkarg commented Feb 25, 2018

@chkal As the EG had never finished its discussion about the high level API, it is up to us to discuss it now. :-)

@spericas
Copy link
Contributor

@mkarg @chkal The high-level API was intended to be like proxy client API now in MP. Not everyone liked the idea of such an API (due to tight coupling etc) and we also ran out of time and had to deliver 2.0 at the time. I think we need to look at this again as a way to align JAX-RS and MP. I'll edit the title of this one.

@spericas spericas changed the title High-level client API Explore alignment with the Micro Profile Rest Client API Feb 27, 2018
@derekm
Copy link

derekm commented Mar 29, 2018

@spericas
Copy link
Contributor

spericas commented Apr 4, 2018

@asoldano Thanks for sharing the link. I noticed a sentence about interface methods only annotated with @path (akin to resource locators). On the server side, resource locators are used to programmatically bind requests to resource classes (possibly by inspecting params etc), but none of that is possible using client interfaces. So the use case here is primarily to split a potentially large interface into smaller ones?

@asoldano
Copy link

asoldano commented Apr 6, 2018

@spericas yes

@andymc12
Copy link
Contributor

Closing as dupe of #598

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants