Maybe put an nginx in front that only passes through the requests you need? Or some other reverse proxy.
I'm not affiliated with AWS but know their API gateway has this functionality https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-import-api.html On Tue, May 12, 2020, 04:20 Otto Fowler <[email protected]> wrote: > If nobody has done this you can look at: > > https://nifi.apache.org/docs/nifi-docs/html/developer-guide.html > > https://cwiki.apache.org/confluence/display/NIFI/Contributor+Guide#ContributorGuide-providingCodeOrDocumentationContributionProvidingcodeordocumentationcontributions > > On May 11, 2020 at 17:47:10, David Hoffer ([email protected]) wrote: > > I'm looking for a Swagger/OpenAPI v3 processor where I can use NiFi as an > embedded REST server per the Swagger/OpenAPI schema/spec. > > I realize that NiFi has the HandleHttpRequest and HandleHttpResponse but > that appears to be either a global (accept everything) or specific for one > endpoint/action. I want a dynamic REST service that exposes all the > endpoints/actions that are defined in the schema/spec and nothing else. > > If this is not something that someone has done with NiFi already is there > a way I could embed my own REST service inside of a generic NiFi > process/etc? E.g. can NiFi host some arbitrary code? > > The reason I'd like to do this is because we already have NiFi flows for > this same 'business functionality' but now I also need a new REST service > for it that might not be connected to the existing flow but I'd like all > the logic in one place...so NiFi to host everything. > > Can someone point me in the right direction? > > -Dave > >
