storj/satellite/console/consoleweb/consoleapi/gen/main.go
Vitalii Shpital 5d6ee506b0 private/apigen: initial typings and methods
Initial typings and methods for the future API Management implementation.
Blueprint - https://review.dev.storj.io/c/storj/storj/+/6341

Change-Id: I9afe66a7610a3a80e764b317ddd211f125b1ea43
2022-01-26 14:39:22 +00:00

27 lines
483 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() {
api := apigen.New("v1", "")
{
g := api.Group("Projects", "projects")
g.Get("/", &apigen.Endpoint{
Name: "List Projects",
Description: "Lists all projects user has",
MethodName: "ListUserProjects",
Response: []console.Project{},
})
}
}