@@ -52,6 +52,7 @@ func (h *MessageHandler) RegisterRoutes(router fiber.Router) {
5252// PostSend a new entities.Message
5353// @Summary Send a new SMS message
5454// @Description Add a new SMS message to be sent by the android phone
55+ // @Security ApiKeyAuth
5556// @Tags Messages
5657// @Accept json
5758// @Produce json
@@ -61,6 +62,7 @@ func (h *MessageHandler) RegisterRoutes(router fiber.Router) {
6162// @Failure 422 {object} responses.UnprocessableEntity
6263// @Failure 500 {object} responses.InternalServerError
6364// @Router /messages/send [post]
65+ // @Security ApiKeyAuth
6466func (h * MessageHandler ) PostSend (c * fiber.Ctx ) error {
6567 ctx , span := h .tracer .StartFromFiberCtx (c )
6668 defer span .End ()
@@ -93,6 +95,7 @@ func (h *MessageHandler) PostSend(c *fiber.Ctx) error {
9395// GetOutstanding returns entities.Message which are still to be sent by the mobile phone
9496// @Summary Get outstanding messages
9597// @Description Get list of messages which are outstanding to be sent by the phone
98+ // @Security ApiKeyAuth
9699// @Tags Messages
97100// @Accept json
98101// @Produce json
@@ -136,6 +139,7 @@ func (h *MessageHandler) GetOutstanding(c *fiber.Ctx) error {
136139// Index returns messages sent between 2 phone numbers
137140// @Summary Get messages which are sent between 2 phone numbers
138141// @Description Get list of messages which are sent between 2 phone numbers. It will be sorted by timestamp in descending order.
142+ // @Security ApiKeyAuth
139143// @Tags Messages
140144// @Accept json
141145// @Produce json
@@ -181,6 +185,7 @@ func (h *MessageHandler) Index(c *fiber.Ctx) error {
181185// PostEvent registers an event on a message
182186// @Summary Store an event for a message on the mobile phone
183187// @Description Use this endpoint to send events for a message when it is failed, sent or delivered by the mobile phone.
188+ // @Security ApiKeyAuth
184189// @Tags Messages
185190// @Accept json
186191// @Produce json
@@ -192,6 +197,7 @@ func (h *MessageHandler) Index(c *fiber.Ctx) error {
192197// @Failure 422 {object} responses.UnprocessableEntity
193198// @Failure 500 {object} responses.InternalServerError
194199// @Router /messages/{messageID}/events [post]
200+ // @Security ApiKeyAuth
195201func (h * MessageHandler ) PostEvent (c * fiber.Ctx ) error {
196202 ctx , span := h .tracer .StartFromFiberCtx (c )
197203 defer span .End ()
@@ -236,6 +242,7 @@ func (h *MessageHandler) PostEvent(c *fiber.Ctx) error {
236242// PostReceive receives a new entities.Message
237243// @Summary Receive a new SMS message from a mobile phone
238244// @Description Add a new message received from a mobile phone
245+ // @Security ApiKeyAuth
239246// @Tags Messages
240247// @Accept json
241248// @Produce json
0 commit comments