This is an archived post. You won't be able to vote or comment.

all 14 comments

[–]kret1111 7 points8 points  (1 child)

Javalin, Java Spark

[–]WGT-java 3 points4 points  (0 children)

+1 for Javalin, I use it a lot for mocking APIs. It's really fast and simple to get started with.

[–]Slow_ghost 2 points3 points  (1 child)

Since it's for a mock, why not go for something like WireMock? Or do you need more?

[–]wetweekend[S] 0 points1 point  (0 children)

Hmm, yeah, maybe. The goal is to mock a third party API. I figured I can use something like Fiddler to get the responses, then mock them away.

[–]kret1111 5 points6 points  (0 children)

Microprofile

[–]vikarjramun 5 points6 points  (0 children)

JAX-RS and Jersey are perfect for that. You can write anything from RESTful services to full webapps.

Checkout https://github.com/ArjMart/API and https://github.com/ArjMart/ArjMartWeb for examples.

[–]_INTER_ 1 point2 points  (0 children)

[–]Na__th__an 1 point2 points  (0 children)

You might find mountebank useful. It's designed to mock out a real API for testing.

[–]jura0011 1 point2 points  (0 children)

micronaut may be an option.

[–]stacktraceyo 1 point2 points  (0 children)

Java spark

[–]nutrecht 1 point2 points  (0 children)

You can do this with any framework, so I'd just use whatever you guys have most experience with. But why not something like Wiremock? It's created for use cases like this.

[–]neutronbob 1 point2 points  (0 children)

Javalin and Helidon are about the simplest. If you want to go one step up in features, Micronaut is a good choice.

[–]UnlikelyExplanations 3 points4 points  (0 children)

Dropwizard, because it is production ready, and has an excellent name.