storj/satellite/console/consoleweb/consoleapi/gen/main.go
Vitalii Shpital 07c71e34c2 satellite/console{gen}: GetUsersProjects endpoint
Initial implementation of auto-generated GetUsersProjects endpoint

Change-Id: If41bff2ea3ff9cfc87afeda9e5e5b3f586cbab33
2022-02-10 08:03:02 +00:00

34 lines
608 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/")
}