2024-07-26 13:07:25 +02:00
|
|
|
package routers
|
|
|
|
|
|
|
|
import (
|
|
|
|
beego "github.com/beego/beego/v2/server/web"
|
|
|
|
"github.com/beego/beego/v2/server/web/context/param"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:DataController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:DataController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Post",
|
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:DataController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:DataController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "GetAll",
|
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:DataController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:DataController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Put",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"put"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:DataController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:DataController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Get",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:DataController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:DataController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Delete",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"delete"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-07-26 14:39:57 +02:00
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:DataController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:DataController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Search",
|
2024-07-30 10:07:34 +02:00
|
|
|
Router: `/search/:search`,
|
2024-07-26 14:39:57 +02:00
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-11-07 13:42:19 +01:00
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ComputeController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ComputeController"],
|
2024-07-26 13:07:25 +02:00
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Post",
|
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-11-07 13:42:19 +01:00
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ComputeController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ComputeController"],
|
2024-07-26 13:07:25 +02:00
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "GetAll",
|
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-11-07 13:42:19 +01:00
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ComputeController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ComputeController"],
|
2024-07-26 13:07:25 +02:00
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Put",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"put"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-11-07 13:42:19 +01:00
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ComputeController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ComputeController"],
|
2024-07-26 13:07:25 +02:00
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Get",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-11-07 13:42:19 +01:00
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ComputeController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ComputeController"],
|
2024-07-26 13:07:25 +02:00
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Delete",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"delete"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-11-07 13:42:19 +01:00
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ComputeController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ComputeController"],
|
2024-07-26 14:39:57 +02:00
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Search",
|
2024-07-30 10:07:34 +02:00
|
|
|
Router: `/search/:search`,
|
2024-07-26 14:39:57 +02:00
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-07-26 13:07:25 +02:00
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Post",
|
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "GetAll",
|
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Put",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"put"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Get",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Delete",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"delete"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-07-26 14:39:57 +02:00
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Search",
|
2024-07-30 10:07:34 +02:00
|
|
|
Router: `/search/:search`,
|
2024-07-26 14:39:57 +02:00
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ResourceController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ResourceController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "GetAll",
|
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ResourceController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ResourceController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Get",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ResourceController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ResourceController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Delete",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"delete"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ResourceController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ResourceController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Search",
|
2024-07-30 10:07:34 +02:00
|
|
|
Router: `/search/:search`,
|
2024-07-26 14:39:57 +02:00
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-07-26 13:07:25 +02:00
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Post",
|
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "GetAll",
|
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Put",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"put"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Get",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Delete",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"delete"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-07-26 14:39:57 +02:00
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Search",
|
2024-07-30 10:07:34 +02:00
|
|
|
Router: `/search/:search`,
|
2024-07-26 14:39:57 +02:00
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-07-26 13:07:25 +02:00
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:VersionController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:VersionController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "GetAll",
|
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-08-21 11:57:45 +02:00
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:VersionController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:VersionController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Status",
|
|
|
|
Router: `/status`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-07-26 13:07:25 +02:00
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Post",
|
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "GetAll",
|
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Put",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"put"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Get",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Delete",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"delete"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-07-26 14:39:57 +02:00
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Search",
|
2024-07-30 10:07:34 +02:00
|
|
|
Router: `/search/:search`,
|
2024-07-26 14:39:57 +02:00
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-07-26 13:07:25 +02:00
|
|
|
}
|