5d6ee506b0
Initial typings and methods for the future API Management implementation. Blueprint - https://review.dev.storj.io/c/storj/storj/+/6341 Change-Id: I9afe66a7610a3a80e764b317ddd211f125b1ea43
27 lines
483 B
Go
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{},
|
|
})
|
|
}
|
|
}
|