-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
76 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,8 @@ | |
// Terms Of Service: | ||
// | ||
// Schemes: http, https | ||
// Host: localhost:8080 | ||
// Host: localhost:8089 | ||
// basePath: /api/ocloudNotifications/v1 | ||
// Version: 1.0.0 | ||
// Contact: Aneesh Puttur<[email protected]> | ||
// | ||
|
@@ -237,6 +238,17 @@ func (s *Server) Start() { | |
404 Subscription resources are not available (not created). | ||
*/ | ||
api.HandleFunc("/subscriptions", s.getSubscriptions).Methods(http.MethodGet) | ||
//publishers create publisher and send it to a channel that is shared by middleware to process | ||
// swagger:operation GET /publishers/ publishers getPublishers | ||
// --- | ||
// summary: Get publishers. | ||
// description: If publisher creation is success(or if already exists), publisher will be returned with Created (201). | ||
// parameters: | ||
// responses: | ||
// "200": | ||
// "$ref": "#/responses/publishers" | ||
// "404": | ||
// "$ref": "#/responses/notFound" | ||
api.HandleFunc("/publishers", s.getPublishers).Methods(http.MethodGet) | ||
// 200 and 404 | ||
api.HandleFunc("/subscriptions/{subscriptionid}", s.getSubscriptionByID).Methods(http.MethodGet) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters