forked from goadesign/examples
/
paths.go
47 lines (38 loc) · 1.27 KB
/
paths.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Code generated by goa v3.13.1, DO NOT EDIT.
//
// HTTP request path constructors for the storage service.
//
// Command:
// $ goa gen github.com/ikawaha/examples/cellar/design
package server
import (
"fmt"
)
// ListStoragePath returns the URL path to the storage service list HTTP endpoint.
func ListStoragePath() string {
return "/storage"
}
// ShowStoragePath returns the URL path to the storage service show HTTP endpoint.
func ShowStoragePath(id string) string {
return fmt.Sprintf("/storage/%v", id)
}
// AddStoragePath returns the URL path to the storage service add HTTP endpoint.
func AddStoragePath() string {
return "/storage"
}
// RemoveStoragePath returns the URL path to the storage service remove HTTP endpoint.
func RemoveStoragePath(id string) string {
return fmt.Sprintf("/storage/%v", id)
}
// RateStoragePath returns the URL path to the storage service rate HTTP endpoint.
func RateStoragePath() string {
return "/storage/rate"
}
// MultiAddStoragePath returns the URL path to the storage service multi_add HTTP endpoint.
func MultiAddStoragePath() string {
return "/storage/multi_add"
}
// MultiUpdateStoragePath returns the URL path to the storage service multi_update HTTP endpoint.
func MultiUpdateStoragePath() string {
return "/storage/multi_update"
}