Package io.micronaut.controlpanel.ui
Interface ControlPanelApi
- All Known Implementing Classes:
ControlPanelController
public interface ControlPanelApi
HTTP API for the control panel UI.
- Since:
- 1.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.http.HttpResponse
<io.micronaut.views.ModelAndView<?>> byCategory
(String categoryId) Renders the category view.io.micronaut.http.HttpResponse
<io.micronaut.views.ModelAndView<?>> Renders the control panel detailed view.io.micronaut.http.HttpResponse
<io.micronaut.views.ModelAndView<?>> index()
Renders the index view.
-
Field Details
-
PATH
- See Also:
-
-
Method Details
-
index
@Get io.micronaut.http.HttpResponse<io.micronaut.views.ModelAndView<?>> index()Renders the index view.- Returns:
- the model
-
byCategory
@Get("/categories/{categoryId}") io.micronaut.http.HttpResponse<io.micronaut.views.ModelAndView<?>> byCategory(String categoryId) Renders the category view.- Parameters:
categoryId
- the category id.- Returns:
- the model
-
detail
@Get("/{controlPanelName}") io.micronaut.http.HttpResponse<io.micronaut.views.ModelAndView<?>> detail(String controlPanelName) Renders the control panel detailed view.- Parameters:
controlPanelName
- the control panel name.- Returns:
- the model
-