Issue is resolved after using quarkus.rest.fail-on-duplicate=false configuration suggested by @geonand.
Thank you for the help.
Check this url for more information https://github.com/quarkusio/quarkus/issues/51203