Compare commits
12 commits
b541809470
...
e963826d8d
| Author | SHA1 | Date | |
|---|---|---|---|
| e963826d8d | |||
| 11a65fa2ac | |||
| 8b13477d11 | |||
| 2d20c4f4de | |||
| 384ba0c18f | |||
| c19cf16480 | |||
| bcb3e3ccc5 | |||
| 554db48dd9 | |||
| d844cd44ac | |||
| 33b11c96ed | |||
| 33fc1fe171 | |||
| 4fd2efe5fe |
1 changed files with 31 additions and 0 deletions
|
|
@ -74,6 +74,37 @@ func (uc *TestPluginController) TestPluginOptionHandler(c *gin.Context) {
|
|||
c.Next()
|
||||
}
|
||||
|
||||
// ListTestPlugins retrieves all available test plugins.
|
||||
//
|
||||
// @Summary List test plugins (admin)
|
||||
// @Schemes
|
||||
// @Description Retrieves a list of all available test plugins with their version information.
|
||||
// @Tags plugins
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {object} map[string]happydns.PluginVersionInfo "Map of plugin name to version info"
|
||||
// @Failure 500 {object} happydns.ErrorResponse "Internal server error"
|
||||
// @Router /plugins/tests [get]
|
||||
func (uc *TestPluginController) ListTestPlugins(c *gin.Context) {
|
||||
uc.BaseTestPluginController.ListTestPlugins(c)
|
||||
}
|
||||
|
||||
// GetTestPluginStatus retrieves the status and available options for a test plugin.
|
||||
//
|
||||
// @Summary Get test plugin status (admin)
|
||||
// @Schemes
|
||||
// @Description Retrieves the status and available configuration options for a specific test plugin.
|
||||
// @Tags plugins
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param pname path string true "Plugin name"
|
||||
// @Success 200 {object} happydns.PluginStatus "Plugin status with available options"
|
||||
// @Failure 404 {object} happydns.ErrorResponse "Plugin not found"
|
||||
// @Router /plugins/tests/{pname} [get]
|
||||
func (uc *TestPluginController) GetTestPluginStatus(c *gin.Context) {
|
||||
uc.BaseTestPluginController.GetTestPluginStatus(c)
|
||||
}
|
||||
|
||||
// GetTestPluginOptions retrieves all admin-level options for a test plugin.
|
||||
//
|
||||
// @Summary Get test plugin options (admin)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue