* Define route and run codegen * Wire up HTTP layer * Update API layer and test fakes * Implement reset of policy tree * Implement service layer test and authorization bindings * API layer testing * Be more specific when injecting settings
38 lines
872 B
Go
38 lines
872 B
Go
package definitions
|
|
|
|
// swagger:route GET /api/v1/provisioning/policies provisioning stable RouteGetPolicyTree
|
|
//
|
|
// Get the notification policy tree.
|
|
//
|
|
// Responses:
|
|
// 200: Route
|
|
// description: The currently active notification routing tree
|
|
|
|
// swagger:route PUT /api/v1/provisioning/policies provisioning stable RoutePutPolicyTree
|
|
//
|
|
// Sets the notification policy tree.
|
|
//
|
|
// Consumes:
|
|
// - application/json
|
|
//
|
|
// Responses:
|
|
// 202: Ack
|
|
// 400: ValidationError
|
|
|
|
// swagger:route DELETE /api/v1/provisioning/policies provisioning stable RouteResetPolicyTree
|
|
//
|
|
// Clears the notification policy tree.
|
|
//
|
|
// Consumes:
|
|
// - application/json
|
|
//
|
|
// Responses:
|
|
// 202: Ack
|
|
|
|
// swagger:parameters RoutePutPolicyTree
|
|
type Policytree struct {
|
|
// The new notification routing tree to use
|
|
// in:body
|
|
Body Route
|
|
}
|