storj/satellite/console/consoleweb/consoleapi/gen/main.go
Vitalii Shpital ba6956db0f console/server, apigen: feature flag for new generated console api
Added a feture flag which will be used to indicate if new generated console api is used.
Fixed some comments from previous PR.

Change-Id: Ice31c998b0b347028a491c971a648fd1269bfd49
2022-02-28 23:00:12 +00:00

34 lines
618 B
Go

// Copyright (C) 2022 Storj Labs, Inc.
// See LICENSE for copying information.
package main
//go:generate go run ./
import (
"storj.io/storj/private/apigen"
"storj.io/storj/satellite/console"
)
func main() {
a := &apigen.API{
Version: "v1",
Description: "",
PackageName: "consoleapi",
}
{
g := a.Group("ProjectManagement", "projects")
g.Get("/", &apigen.Endpoint{
Name: "Get Projects",
Description: "Gets all projects user has",
MethodName: "GetUserProjects",
Response: []console.Project{},
})
}
a.MustWrite("satellite/console/consoleweb/consoleapi/api.gen.go")
}