79726189

Date: 2025-08-05 13:38:08
Score: 1
Natty:
Report link

Based on my understanding, the HandleHttpRequest.java servlet configuration currently uses the path "/" as the base. If we change this to "/api/", then all API endpoints will be handled under the /api/ path, meaning requests like /api/yourendpoint will be routed correctly by default.

        final ServletContextHandler handler = new ServletContextHandler();
        handler.addServlet(standardServlet, "/");
        server.setHandler(handler);

        this.server = server;
        server.start();

https://github.com/apache/nifi/blob/a7e336f416a0f31af354451b70e2cce6696ff71d/nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HandleHttpRequest.java#L502

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: vigneshwar reddy