@@ -125,26 +125,28 @@ public static List<GeneratedAPI> GetApiDefinitions()
125
125
ReturnType = "Models.Config.ActionResult" ,
126
126
Params = new Dictionary < string , string > { { "id" , "string" } }
127
127
} ,
128
+ /* per instance API, via management hub */
128
129
new GeneratedAPI {
129
-
130
130
OperationName = "GetAcmeAccounts" ,
131
131
OperationMethod = "HttpGet" ,
132
132
Comment = "Get All Acme Accounts" ,
133
+ UseManagementAPI = true ,
133
134
PublicAPIController = "CertificateAuthority" ,
134
- PublicAPIRoute = "accounts" ,
135
+ PublicAPIRoute = "accounts/{instanceId} " ,
135
136
ServiceAPIRoute = "accounts" ,
136
- ReturnType = "ICollection<Models.AccountDetails>"
137
+ ReturnType = "ICollection<Models.AccountDetails>" ,
138
+ Params = new Dictionary < string , string > { { "instanceId" , "string" } }
137
139
} ,
138
140
new GeneratedAPI {
139
-
140
141
OperationName = "AddAcmeAccount" ,
141
142
OperationMethod = "HttpPost" ,
142
143
Comment = "Add New Acme Account" ,
144
+ UseManagementAPI = true ,
143
145
PublicAPIController = "CertificateAuthority" ,
144
- PublicAPIRoute = "account" ,
146
+ PublicAPIRoute = "account/{instanceId} " ,
145
147
ServiceAPIRoute = "accounts" ,
146
148
ReturnType = "Models.Config.ActionResult" ,
147
- Params = new Dictionary < string , string > { { "registration" , "Certify.Models.ContactRegistration" } }
149
+ Params = new Dictionary < string , string > { { "instanceId" , "string" } , { "registration" , "Certify.Models.ContactRegistration" } }
148
150
} ,
149
151
new GeneratedAPI {
150
152
@@ -157,18 +159,7 @@ public static List<GeneratedAPI> GetApiDefinitions()
157
159
ReturnType = "Models.Config.ActionResult" ,
158
160
Params = new Dictionary < string , string > { { "certificateAuthority" , "Certify.Models.CertificateAuthority" } }
159
161
} ,
160
- new GeneratedAPI {
161
162
162
- OperationName = "RemoveManagedCertificate" ,
163
- OperationMethod = "HttpDelete" ,
164
- Comment = "Remove Managed Certificate" ,
165
- PublicAPIController = "Certificate" ,
166
- PublicAPIRoute = "settings/{instanceId}/{managedCertId}" ,
167
- UseManagementAPI = true ,
168
- ServiceAPIRoute = "managedcertificates/delete/{managedCertId}" ,
169
- ReturnType = "bool" ,
170
- Params = new Dictionary < string , string > { { "instanceId" , "string" } , { "managedCertId" , "string" } }
171
- } ,
172
163
new GeneratedAPI {
173
164
174
165
OperationName = "RemoveCertificateAuthority" ,
@@ -219,7 +210,19 @@ public static List<GeneratedAPI> GetApiDefinitions()
219
210
ServiceAPIRoute = "system/migration/import" ,
220
211
ReturnType = "ICollection<ActionStep>" ,
221
212
Params = new Dictionary < string , string > { { "importRequest" , "Certify.Models.Config.Migration.ImportRequest" } }
222
- }
213
+ } ,
214
+ new GeneratedAPI {
215
+
216
+ OperationName = "RemoveManagedCertificate" ,
217
+ OperationMethod = "HttpDelete" ,
218
+ Comment = "Remove Managed Certificate" ,
219
+ PublicAPIController = "Certificate" ,
220
+ PublicAPIRoute = "settings/{instanceId}/{managedCertId}" ,
221
+ UseManagementAPI = true ,
222
+ ServiceAPIRoute = "managedcertificates/delete/{managedCertId}" ,
223
+ ReturnType = "bool" ,
224
+ Params = new Dictionary < string , string > { { "instanceId" , "string" } , { "managedCertId" , "string" } }
225
+ } ,
223
226
} ;
224
227
}
225
228
}
0 commit comments