-
Notifications
You must be signed in to change notification settings - Fork 24
/
structure.go
144 lines (141 loc) · 3.1 KB
/
structure.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
package docs
type Endpoint struct {
Key string
Description string
}
type Resource struct {
Name string
Description string
Endpoints []Endpoint
}
// Structure defines the top-level structure of the documentation to be generated.
var Structure = []Resource{
{
Name: "Info",
Description: "EVAN WILL EDIT THIS",
Endpoints: []Endpoint{
{
Key: "info-get",
Description: "Retrieve information about the API",
},
},
},
{
Name: "Senders",
Description: "EVAN WILL EDIT THIS",
Endpoints: []Endpoint{
{
Key: "sender-create",
Description: "Create a new sender",
},
{
Key: "sender-list",
Description: "List all senders",
},
{
Key: "sender-get",
Description: "Retrieve a sender",
},
{
Key: "sender-update",
Description: "Update a sender",
},
{
Key: "sender-delete",
Description: "Delete a sender",
},
},
},
{
Name: "Templates",
Description: "EVAN WILL EDIT THIS",
Endpoints: []Endpoint{
{
Key: "template-create",
Description: "Create a new template",
},
{
Key: "template-list",
Description: "Retrieve a list of templates",
},
{
Key: "template-get",
Description: "Retrieve a template",
},
{
Key: "template-update",
Description: "Update a template",
},
{
Key: "template-delete",
Description: "Delete a template",
},
},
},
{
Name: "Campaign Types",
Description: "EVAN WILL EDIT THIS",
Endpoints: []Endpoint{
{
Key: "campaign-type-create",
Description: "Create a new campaign type",
},
{
Key: "campaign-type-list",
Description: "Retrieve a list of campaign types",
},
{
Key: "campaign-type-get",
Description: "Retrieve a campaign type",
},
{
Key: "campaign-type-update",
Description: "Update a campaign type",
},
{
Key: "campaign-type-delete",
Description: "Delete a campaign type",
},
},
},
{
Name: "Campaigns",
Description: "Campaigns are an email to a set of users using a template provided directly or via a campaign type or via the default template.",
Endpoints: []Endpoint{
{
Key: "campaign-create",
Description: "Create a new campaign",
},
{
Key: "campaign-get",
Description: "Retrieve a campaign",
},
{
Key: "campaign-status",
Description: "Retrieve the status of a campaign",
},
},
},
{
Name: "Unsubscribing",
Description: "EVAN WILL EDIT THIS",
Endpoints: []Endpoint{
{
Key: "unsubscriber-put-client",
Description: "Unsubscribe a user (with a client token)",
},
{
Key: "unsubscriber-put-user",
Description: "Unsubscribe a user (with a user token)",
},
{
Key: "unsubscriber-delete-client",
Description: "Resubscribe a user (with a client token)",
},
{
Key: "unsubscriber-delete-user",
Description: "Resubscribe a user (with a user token)",
},
},
},
}