Package org.tailormap.api.controller
Class ViewerController
java.lang.Object
org.tailormap.api.controller.ViewerController
-
Constructor Summary
ConstructorDescriptionViewerController
(ConfigurationRepository configurationRepository, ApplicationRepository applicationRepository, ApplicationHelper applicationHelper, AuthorizationService authorizationService, 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, AuthorizationService authorizationService, 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)
-