update to support postgresql and add godocs
This commit is contained in:
@@ -10,7 +10,16 @@ import (
|
||||
"vctp/db/queries"
|
||||
)
|
||||
|
||||
// Remove a specified VM from the inventory
|
||||
// VmCleanup removes a VM from inventory by ID and datacenter.
|
||||
// @Summary Cleanup VM inventory entry
|
||||
// @Description Removes a VM inventory entry by VM ID and datacenter name.
|
||||
// @Tags inventory
|
||||
// @Produce json
|
||||
// @Param vm_id query string true "VM ID"
|
||||
// @Param datacenter_name query string true "Datacenter name"
|
||||
// @Success 200 {object} map[string]string "Cleanup completed"
|
||||
// @Failure 400 {object} map[string]string "Invalid request"
|
||||
// @Router /api/inventory/vm/delete [delete]
|
||||
func (h *Handler) VmCleanup(w http.ResponseWriter, r *http.Request) {
|
||||
ctx := context.Background()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user