- REST-API to lookup services
- Activate/Deactivate endpoint with optional message and HTTP-Status 401
- Basic-Authentification
- Mule Connector for Service Lookup
- Oracle-DB as backend
cd service-registry
mvn clean install
#MySQL
spring.datasource.url=jdbc:mysql://localhost/test
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driverClassName=com.mysql.jdbc.Driver
spring.datasource.intialize=true
There is another environment.properties in src/main/config that will be used as a template during RPM installation.
Start JVM
java -jar target/*.jar --spring.profiles.active=security --server.port=8080
or
mvn spring-boot:run
Open GUI in the browser
http://localhost:8080/
Access API
curl http://localhost:8080/api/services/service1/versions/1.0.0 -u user:password
Create RPM with Maven
mvn rpm:rpm
Environment configuration file
/etc/service-registry/environment.properties
System configuration file
/etc/sysconfig/service-registry
Health Endpoint
http://localhost:8080/health
Environment information
http://localhost:8080/env
Logging
Can be customized in "/etc/sysconfig/service-registry"
--logging.file=/var/log/service-registry.log
Host Address
Can be customized in "/etc/sysconfig/service-registry"
--server.address=localhost
Port
Can be customized in "/etc/sysconfig/service-registry"
--server.port=8080