= Parksmap application This application is a frontend web and gateway to backend services that provide geolocation data on services
== Installation As the application needs to interact with openshift's API, you'll need to provide some permissions to the default ServiceAccount for that.
Assuming you're using the project
There's some options that can be parameterized:
Example:
== Backends Backend services require to have an specific annotation to be discovered:
Every backend should provide an endpoint located at /ws/info that will provide link:src/main/java/com/openshift/evg/roadshow/rest/gateway/model/Backend.java[Backend] information.
Here you can find 2 sample implementations:
@RequestMapping("/ws/info") @RestController public class BackendController{
@RequestMapping(method = RequestMethod.GET, value = "/", produces = "application/json")
public Backend get() {
return new Backend(....);
}
== Use Once the application has been deployed, you can manually register/unregister a backend:
== Test locally This application can be run locally against while having the backend services running on a local openshift instance (all-in-one, oc cluster up or CDK).
=== Run it To run the application, you should just:
Backends will be registered if they are deployed or when deployed, and unregistered when undeployed.
But you can test registration/unregistration manually.
=== Register To register a backend:
=== Unregister To unregister a backend:
=== List backend To list available backends: