git clone https://github.com/chingam/minhaj-sarter-swagger.git
cd minhaj-sarter-swagger
mvn -DskipTests spring-boot:run
You can then access here: http://localhost:8080/swagger-ui.html
-
Add API key to api_key database table or using ApiKey JPA entity.
-
Add header ApiKey or use HTTP basic authentication with username = {API key} and password = EMPTY to access REST resource.
ApiKey : ff808181569d2a7401569d2f12930001
curl -H "ApiKey: YOUR_API_KEY" https://yourhost/yourpath
orcurl -u YOUR_API_KEY: https://yourhost/yourpath
- Add pattern and authorities to api_pattern database table or using ApiPattern JPA entity.
In its default configuration, i am uses an in-memory database (H2) DB.
- In the command line
git clone https://github.com/chingam/minhaj-sarter-swagger.git
- Inside Eclipse
File -> Import -> Maven -> Existing Maven project