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

refactor(server): decouple Dropwizard resources from JAX-RS contract interfaces #458

Merged
merged 1 commit into from
Jun 24, 2023

Conversation

fushar
Copy link
Member

@fushar fushar commented Jun 24, 2023

Currently, each Dropwizard resource implements a corresponding interface, which declare the endpoint using JAX-RS contract. This was primarily so that the integration tests can just create a Feign client using the same contract easily.

There are some problems with it:

  • Feign clients do not support all JAX-RS contract features
  • Recently, we saw a need to add @Context UriInfo to the resources, which had no corresponding JAX-RS contract (of course)

To alleviate the problem, and to future-proof the resources, this PR decouples them.

The next step is to just use Feign contract in the integration tests (not JAX-RS).

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

Successfully merging this pull request may close these issues.

1 participant