Explore this repository to learn how to implement a robust API key filter for securing your Quarkus-powered REST API. The example code demonstrates how to create a custom API key request filter using Quarkus, ensuring that only authorized clients can access your API endpoints. Follow the step-by-step guide and accompanying video tutorial to strengthen your API's security and build a solid foundation for your applications.
To run the project, simply run
./gradlew quarkusDev
When the service is started, make an HTTP GET call to http://localhost:8080/hello and provide the required api key.
E.g. with curl
it could look like this:
curl -L 'localhost:8080/hello' -H 'x-api-key: my-api-key-1'