Package org.tailormap.api.controller
Class ViewerController
java.lang.Object
org.tailormap.api.controller.ViewerController
- All Implemented Interfaces:
TagNames
-
Field Summary
Fields inherited from interface org.tailormap.api.prometheus.TagNames
METRICS_APP_ID_TAG, METRICS_APP_LAYER_ID_TAG, METRICS_APP_NAME_TAG, METRICS_APP_REQUEST_COUNTER_NAME, METRICS_APP_TYPE_TAG
-
Constructor Summary
ConstructorsConstructorDescriptionViewerController
(ConfigurationRepository configurationRepository, ApplicationRepository applicationRepository, ApplicationHelper applicationHelper, AuthorisationService authorisationService, UploadHelper uploadHelper) -
Method Summary
Modifier and TypeMethodDescriptionmap
(Application app) viewer
(Application app, ViewerResponse.KindEnum viewerKind)
-
Constructor Details
-
ViewerController
public ViewerController(ConfigurationRepository configurationRepository, ApplicationRepository applicationRepository, ApplicationHelper applicationHelper, AuthorisationService authorisationService, UploadHelper uploadHelper)
-
-
Method Details
-
defaultApp
-
viewer
@GetMapping(path={"${tailormap-api.base-path}/app/{viewerName}","${tailormap-api.base-path}/service/{viewerName}"}) public ViewerResponse viewer(@ModelAttribute Application app, @ModelAttribute ViewerResponse.KindEnum viewerKind) -
map
@GetMapping(path={"${tailormap-api.base-path}/app/{viewerName}/map","${tailormap-api.base-path}/service/{viewerName}/map"}) public MapResponse map(@ModelAttribute Application app)
-