Skip to content

Quarkus - Open API Generator - Moqu returns 404 #1145

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

Open
alexgelb1 opened this issue May 15, 2025 · 1 comment
Open

Quarkus - Open API Generator - Moqu returns 404 #1145

alexgelb1 opened this issue May 15, 2025 · 1 comment
Assignees

Comments

@alexgelb1
Copy link

Tell us the extension you're using

Mock

I tried this:

I am using the exact same openapi yaml file (url changed to http://localhost:8080) from the Quarkiverse Moqu documentation and the follwoing version:

  • Quarkus: 3.22.2
  • Moqu Open API Generator: 2.9.1-lts

Then called the service with following url with curl and from the chrome browser "http://localhost:8080/frameworks/1".

This happened:

The service call "http://localhost:8080/frameworks/1" returns always a 404 not found.

Anyways the quarkus dev ui under endpoints returns following mapping file:
{"mappings":[{"request":{"method":"GET","url":"/frameworks/1"},"response":{"status":200,"body":"{"supportsJava":true,"versions":["999-SNAPSHOT","3.15.1"],"name":"Quarkus","rules":{"hello":"world"},"contributors":1000}","headers":{}}}]}

I expected this:

I expected to retrieve a response body like in the mapping file.

Is there a workaround?

No response

How can we try to reproduce the issue?

No response

Anything else?

No response

Output of uname -a or ver

No response

Output of java -version

21

Quarkus OpenApi version or git rev

2.9.1-lts

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.name: Bug Report 🐞
@mcruzdev
Copy link
Member

Hi @alexgelb1 this extension does not create an endpoint with the generated mappings. I created an issue to add this feature (to use the generated mappings on wiremock container).

It is a feature request, this extension is intended to do it.

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

No branches or pull requests

3 participants