@@ -14,6 +14,7 @@ import (
|
||||
// VmImport ingests a bulk VM import payload.
|
||||
// @Summary Import VMs (deprecated)
|
||||
// @Description Deprecated: Imports existing VM inventory data in bulk.
|
||||
// @Description Requires Bearer authentication with the admin role.
|
||||
// @Tags inventory
|
||||
// @Deprecated
|
||||
// @Accept json
|
||||
@@ -21,6 +22,7 @@ import (
|
||||
// @Param import body models.ImportReceived true "Bulk import payload"
|
||||
// @Success 200 {object} models.StatusMessageResponse "Import processed"
|
||||
// @Failure 500 {object} models.ErrorResponse "Server error"
|
||||
// @Security BearerAuth
|
||||
// @Router /api/import/vm [post]
|
||||
func (h *Handler) VmImport(w http.ResponseWriter, r *http.Request) {
|
||||
if r.Method != http.MethodPost {
|
||||
|
||||
Reference in New Issue
Block a user