diff --git a/app/module/activity_logs/controller/activity_logs.controller.go b/app/module/activity_logs/controller/activity_logs.controller.go index 1477475..2470b71 100644 --- a/app/module/activity_logs/controller/activity_logs.controller.go +++ b/app/module/activity_logs/controller/activity_logs.controller.go @@ -39,6 +39,7 @@ func NewActivityLogsController(activityLogsService service.ActivityLogsService, // @Description API for getting all ActivityLogs // @Tags ActivityLogs // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param req query request.ActivityLogsQueryRequest false "query parameters" // @Param req query paginator.Pagination false "pagination parameters" // @Success 200 {object} response.Response @@ -81,6 +82,7 @@ func (_i *activityLogsController) All(c *fiber.Ctx) error { // @Description API for getting one ActivityLogs // @Tags ActivityLogs // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param id path int true "ActivityLogs ID" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -112,6 +114,7 @@ func (_i *activityLogsController) Show(c *fiber.Ctx) error { // @Description API for create ActivityLogs // @Tags ActivityLogs // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param Authorization header string false "Insert your access token" default(Bearer ) // @Param payload body request.ActivityLogsCreateRequest true "Required payload" @@ -154,6 +157,7 @@ func (_i *activityLogsController) Save(c *fiber.Ctx) error { // @Description API for update ActivityLogs // @Tags ActivityLogs // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param payload body request.ActivityLogsUpdateRequest true "Required payload" // @Param id path int true "ActivityLogs ID" @@ -191,6 +195,7 @@ func (_i *activityLogsController) Update(c *fiber.Ctx) error { // @Description API for delete ActivityLogs // @Tags ActivityLogs // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param id path int true "ActivityLogs ID" // @Success 200 {object} response.Response @@ -222,6 +227,7 @@ func (_i *activityLogsController) Delete(c *fiber.Ctx) error { // @Description API for get activity stats ActivityLogs // @Tags ActivityLogs // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError // @Failure 401 {object} response.UnauthorizedError diff --git a/app/module/advertisement/controller/advertisement.controller.go b/app/module/advertisement/controller/advertisement.controller.go index 620d27c..122cac0 100644 --- a/app/module/advertisement/controller/advertisement.controller.go +++ b/app/module/advertisement/controller/advertisement.controller.go @@ -41,6 +41,7 @@ func NewAdvertisementController(advertisementService service.AdvertisementServic // @Description API for getting all Advertisement // @Tags Advertisement // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param req query request.AdvertisementQueryRequest false "query parameters" // @Param req query paginator.Pagination false "pagination parameters" // @Success 200 {object} response.Response @@ -84,6 +85,7 @@ func (_i *advertisementController) All(c *fiber.Ctx) error { // @Description API for getting one Advertisement // @Tags Advertisement // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param id path int true "Advertisement ID" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -115,8 +117,9 @@ func (_i *advertisementController) Show(c *fiber.Ctx) error { // @Description API for create Advertisement // @Tags Advertisement // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" -// @Param Authorization header string true "Insert your access token" default(Bearer ) +// @Param Authorization header string false "Insert your access token" default(Bearer ) // @Param payload body request.AdvertisementCreateRequest true "Required payload" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -149,6 +152,7 @@ func (_i *advertisementController) Save(c *fiber.Ctx) error { // @Tags Advertisement // @Security Bearer // @Produce json +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param file formData file true "Upload file" multiple false // @Param id path int true "Advertisement ID" @@ -181,6 +185,7 @@ func (_i *advertisementController) Upload(c *fiber.Ctx) error { // @Description API for update Advertisement // @Tags Advertisement // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param payload body request.AdvertisementUpdateRequest true "Required payload" // @Param id path int true "Advertisement ID" @@ -218,8 +223,9 @@ func (_i *advertisementController) Update(c *fiber.Ctx) error { // @Description API for Update Publish Advertisement // @Tags Advertisement // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" -// @Param Authorization header string true "Insert your access token" default(Bearer ) +// @Param Authorization header string false "Insert your access token" default(Bearer ) // @Param id path int true "Advertisement ID" // @Param isPublish query bool true "Advertisement Publish Status" // @Success 200 {object} response.Response @@ -256,6 +262,7 @@ func (_i *advertisementController) UpdatePublish(c *fiber.Ctx) error { // @Description API for delete Advertisement // @Tags Advertisement // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param id path int true "Advertisement ID" // @Success 200 {object} response.Response @@ -287,6 +294,7 @@ func (_i *advertisementController) Delete(c *fiber.Ctx) error { // @Description API for Viewer Advertisement // @Tags Advertisement // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param filename path string true "Content File Name" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError diff --git a/app/module/article_approvals/controller/article_approvals.controller.go b/app/module/article_approvals/controller/article_approvals.controller.go index 6411176..e46ec3a 100644 --- a/app/module/article_approvals/controller/article_approvals.controller.go +++ b/app/module/article_approvals/controller/article_approvals.controller.go @@ -108,8 +108,9 @@ func (_i *articleApprovalsController) Show(c *fiber.Ctx) error { // @Description API for create ArticleApprovals // @Tags ArticleApprovals // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" -// @Param Authorization header string true "Insert your access token" default(Bearer ) +// @Param Authorization header string false "Insert your access token" default(Bearer ) // @Param payload body request.ArticleApprovalsCreateRequest true "Required payload" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError diff --git a/app/module/article_categories/controller/article_categories.controller.go b/app/module/article_categories/controller/article_categories.controller.go index c5aac3b..75aa582 100644 --- a/app/module/article_categories/controller/article_categories.controller.go +++ b/app/module/article_categories/controller/article_categories.controller.go @@ -39,7 +39,8 @@ func NewArticleCategoriesController(articleCategoriesService service.ArticleCate // @Description API for getting all ArticleCategories // @Tags Article Categories // @Security Bearer -// @Param Authorization header string true "Insert your access token" default(Bearer ) +// @Param X-Client-Key header string false "Insert the X-Client-Key" +// @Param Authorization header string false "Insert your access token" default(Bearer ) // @Param req query request.ArticleCategoriesQueryRequest false "query parameters" // @Param req query paginator.Pagination false "pagination parameters" // @Success 200 {object} response.Response @@ -84,6 +85,7 @@ func (_i *articleCategoriesController) All(c *fiber.Ctx) error { // @Description API for getting one ArticleCategories // @Tags Article Categories // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param id path int true "ArticleCategories ID" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -115,6 +117,7 @@ func (_i *articleCategoriesController) Show(c *fiber.Ctx) error { // @Description API for getting one ArticleCategories // @Tags Article Categories // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param id path int true "ArticleCategories Old ID" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -146,6 +149,7 @@ func (_i *articleCategoriesController) ShowByOldId(c *fiber.Ctx) error { // @Description API for getting one ArticleCategories // @Tags Article Categories // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param slug path string true "ArticleCategories Slug" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -173,8 +177,9 @@ func (_i *articleCategoriesController) ShowBySlug(c *fiber.Ctx) error { // @Description API for create ArticleCategories // @Tags Article Categories // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" -// @Param Authorization header string true "Insert your access token" default(Bearer ) +// @Param Authorization header string false "Insert your access token" default(Bearer ) // @Param payload body request.ArticleCategoriesCreateRequest true "Required payload" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -208,6 +213,7 @@ func (_i *articleCategoriesController) Save(c *fiber.Ctx) error { // @Tags Article Categories // @Security Bearer // @Produce json +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param files formData file true "Upload thumbnail" // @Param id path int true "ArticleCategories ID" @@ -234,6 +240,7 @@ func (_i *articleCategoriesController) SaveThumbnail(c *fiber.Ctx) error { // @Description API for update ArticleCategories // @Tags Article Categories // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param payload body request.ArticleCategoriesUpdateRequest true "Required payload" // @Param id path int true "ArticleCategories ID" @@ -270,6 +277,7 @@ func (_i *articleCategoriesController) Update(c *fiber.Ctx) error { // @Description API for delete ArticleCategories // @Tags Article Categories // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param id path int true "ArticleCategories ID" // @Success 200 {object} response.Response @@ -300,6 +308,7 @@ func (_i *articleCategoriesController) Delete(c *fiber.Ctx) error { // @Description API for View Thumbnail of ArticleCategories // @Tags Article Categories // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param id path string true "ArticleCategories ID" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError diff --git a/app/module/article_comments/controller/article_comments.controller.go b/app/module/article_comments/controller/article_comments.controller.go index 1f82776..aad792c 100644 --- a/app/module/article_comments/controller/article_comments.controller.go +++ b/app/module/article_comments/controller/article_comments.controller.go @@ -38,6 +38,7 @@ func NewArticleCommentsController(articleCommentsService service.ArticleComments // @Description API for getting all ArticleComments // @Tags ArticleComments // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param req query request.ArticleCommentsQueryRequest false "query parameters" // @Param req query paginator.Pagination false "pagination parameters" // @Success 200 {object} response.Response @@ -82,6 +83,7 @@ func (_i *articleCommentsController) All(c *fiber.Ctx) error { // @Description API for getting one ArticleComments // @Tags ArticleComments // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param id path int true "ArticleComments ID" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -114,8 +116,9 @@ func (_i *articleCommentsController) Show(c *fiber.Ctx) error { // @Description API for create ArticleComments // @Tags ArticleComments // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" -// @Param Authorization header string true "Insert your access token" default(Bearer ) +// @Param Authorization header string false "Insert your access token" default(Bearer ) // @Param payload body request.ArticleCommentsCreateRequest true "Required payload" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -149,6 +152,7 @@ func (_i *articleCommentsController) Save(c *fiber.Ctx) error { // @Description API for update ArticleComments // @Tags ArticleComments // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param payload body request.ArticleCommentsUpdateRequest true "Required payload" // @Param id path int true "ArticleComments ID" @@ -187,6 +191,7 @@ func (_i *articleCommentsController) Update(c *fiber.Ctx) error { // @Description API for delete ArticleComments // @Tags ArticleComments // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param id path int true "ArticleComments ID" // @Success 200 {object} response.Response @@ -219,6 +224,7 @@ func (_i *articleCommentsController) Delete(c *fiber.Ctx) error { // @Description API for Approval ArticleComments // @Tags ArticleComments // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param payload body request.ArticleCommentsApprovalRequest true "Required payload" // @Success 200 {object} response.Response diff --git a/app/module/article_files/controller/article_files.controller.go b/app/module/article_files/controller/article_files.controller.go index 50a78cd..45f646c 100644 --- a/app/module/article_files/controller/article_files.controller.go +++ b/app/module/article_files/controller/article_files.controller.go @@ -37,6 +37,7 @@ func NewArticleFilesController(articleFilesService service.ArticleFilesService) // @Description API for getting all ArticleFiles // @Tags Article Files // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param req query request.ArticleFilesQueryRequest false "query parameters" // @Param req query paginator.Pagination false "pagination parameters" // @Success 200 {object} response.Response @@ -80,6 +81,7 @@ func (_i *articleFilesController) All(c *fiber.Ctx) error { // @Description API for getting one ArticleFiles // @Tags Article Files // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param id path int true "ArticleFiles ID" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -113,6 +115,7 @@ func (_i *articleFilesController) Show(c *fiber.Ctx) error { // @Tags Article Files // @Security Bearer // @Produce json +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param files formData file true "Upload file" multiple true // @Param articleId path int true "Article ID" @@ -146,6 +149,7 @@ func (_i *articleFilesController) Save(c *fiber.Ctx) error { // @Description API for update ArticleFiles // @Tags Article Files // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param payload body request.ArticleFilesUpdateRequest true "Required payload" // @Param id path int true "ArticleFiles ID" @@ -184,6 +188,7 @@ func (_i *articleFilesController) Update(c *fiber.Ctx) error { // @Description API for delete ArticleFiles // @Tags Article Files // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param id path int true "ArticleFiles ID" // @Success 200 {object} response.Response @@ -216,6 +221,7 @@ func (_i *articleFilesController) Delete(c *fiber.Ctx) error { // @Description API for Viewer ArticleFiles // @Tags Article Files // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param filename path string true "Article File Name" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError diff --git a/app/module/articles/controller/articles.controller.go b/app/module/articles/controller/articles.controller.go index e9cf4e5..a9bea81 100644 --- a/app/module/articles/controller/articles.controller.go +++ b/app/module/articles/controller/articles.controller.go @@ -164,7 +164,7 @@ func (_i *articlesController) ShowByOldId(c *fiber.Ctx) error { // @Security Bearer // @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string false "Insert the X-Csrf-Token" -// @Param Authorization header string true "Insert your access token" default(Bearer ) +// @Param Authorization header string false "Insert your access token" default(Bearer ) // @Param payload body request.ArticlesCreateRequest true "Required payload" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -354,7 +354,7 @@ func (_i *articlesController) Viewer(c *fiber.Ctx) error { // @Description API for Summary Stats of Article // @Tags Articles // @Security Bearer -// @Param Authorization header string true "Insert your access token" default(Bearer ) +// @Param Authorization header string false "Insert your access token" default(Bearer ) // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError // @Failure 401 {object} response.UnauthorizedError @@ -383,7 +383,7 @@ func (_i *articlesController) SummaryStats(c *fiber.Ctx) error { // @Description API for ArticlePerUserLevelStats of Article // @Tags Articles // @Security Bearer -// @Param Authorization header string true "Insert your access token" default(Bearer ) +// @Param Authorization header string false "Insert your access token" default(Bearer ) // @Param startDate query string false "start date" // @Param endDate query string false "start date" // @Success 200 {object} response.Response @@ -416,7 +416,7 @@ func (_i *articlesController) ArticlePerUserLevelStats(c *fiber.Ctx) error { // @Description API for ArticleMonthlyStats of Article // @Tags Articles // @Security Bearer -// @Param Authorization header string true "Insert your access token" default(Bearer ) +// @Param Authorization header string false "Insert your access token" default(Bearer ) // @Param year query int false "year" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -452,7 +452,7 @@ func (_i *articlesController) ArticleMonthlyStats(c *fiber.Ctx) error { // @Tags Articles // @Security Bearer // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" -// @Param Authorization header string true "Insert your access token" default(Bearer ) +// @Param Authorization header string false "Insert your access token" default(Bearer ) // @Param id query int false "article id" // @Param date query string false "publish date" // @Success 200 {object} response.Response diff --git a/app/module/clients/controller/clients.controller.go b/app/module/clients/controller/clients.controller.go index f45e757..c858cbd 100644 --- a/app/module/clients/controller/clients.controller.go +++ b/app/module/clients/controller/clients.controller.go @@ -105,7 +105,7 @@ func (_i *clientsController) Show(c *fiber.Ctx) error { // @Description API for create Clients // @Tags Clients // @Security Bearer -// @Param Authorization header string true "Insert your access token" default(Bearer ) +// @Param Authorization header string false "Insert your access token" default(Bearer ) // @Param payload body request.ClientsCreateRequest true "Required payload" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError diff --git a/app/module/custom_static_pages/controller/custom_static_pages.controller.go b/app/module/custom_static_pages/controller/custom_static_pages.controller.go index 93a067d..aa88bfd 100644 --- a/app/module/custom_static_pages/controller/custom_static_pages.controller.go +++ b/app/module/custom_static_pages/controller/custom_static_pages.controller.go @@ -39,6 +39,7 @@ func NewCustomStaticPagesController(customStaticPagesService service.CustomStati // @Description API for getting all CustomStaticPages // @Tags CustomStaticPages // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param req query request.CustomStaticPagesQueryRequest false "query parameters" // @Param req query paginator.Pagination false "pagination parameters" // @Success 200 {object} response.Response @@ -82,6 +83,7 @@ func (_i *customStaticPagesController) All(c *fiber.Ctx) error { // @Description API for getting one CustomStaticPages // @Tags CustomStaticPages // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param id path int true "CustomStaticPages ID" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -114,6 +116,7 @@ func (_i *customStaticPagesController) Show(c *fiber.Ctx) error { // @Description API for getting one CustomStaticPages // @Tags CustomStaticPages // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param slug path string true "CustomStaticPages Slug" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -143,6 +146,7 @@ func (_i *customStaticPagesController) ShowBySlug(c *fiber.Ctx) error { // @Description API for create CustomStaticPages // @Tags CustomStaticPages // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param payload body request.CustomStaticPagesCreateRequest true "Required payload" // @Success 200 {object} response.Response @@ -177,6 +181,7 @@ func (_i *customStaticPagesController) Save(c *fiber.Ctx) error { // @Description API for update CustomStaticPages // @Tags CustomStaticPages // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param payload body request.CustomStaticPagesUpdateRequest true "Required payload" // @Param id path int true "CustomStaticPages ID" @@ -215,6 +220,7 @@ func (_i *customStaticPagesController) Update(c *fiber.Ctx) error { // @Description API for delete CustomStaticPages // @Tags CustomStaticPages // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param id path int true "CustomStaticPages ID" // @Success 200 {object} response.Response diff --git a/app/module/feedbacks/controller/feedbacks.controller.go b/app/module/feedbacks/controller/feedbacks.controller.go index bf02cbd..b2e1c6f 100644 --- a/app/module/feedbacks/controller/feedbacks.controller.go +++ b/app/module/feedbacks/controller/feedbacks.controller.go @@ -38,6 +38,7 @@ func NewFeedbacksController(feedbacksService service.FeedbacksService, log zerol // @Description API for getting all Feedbacks // @Tags Feedbacks // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param req query request.FeedbacksQueryRequest false "query parameters" // @Param req query paginator.Pagination false "pagination parameters" // @Success 200 {object} response.Response @@ -81,6 +82,7 @@ func (_i *feedbacksController) All(c *fiber.Ctx) error { // @Description API for getting one Feedbacks // @Tags Feedbacks // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param id path int true "Feedbacks ID" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -113,8 +115,9 @@ func (_i *feedbacksController) Show(c *fiber.Ctx) error { // @Description API for create Feedbacks // @Tags Feedbacks // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" -// @Param Authorization header string true "Insert your access token" default(Bearer ) +// @Param Authorization header string false "Insert your access token" default(Bearer ) // @Param payload body request.FeedbacksCreateRequest true "Required payload" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -149,6 +152,7 @@ func (_i *feedbacksController) Save(c *fiber.Ctx) error { // @Description API for update Feedbacks // @Tags Feedbacks // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param payload body request.FeedbacksUpdateRequest true "Required payload" // @Param id path int true "Feedbacks ID" @@ -187,6 +191,7 @@ func (_i *feedbacksController) Update(c *fiber.Ctx) error { // @Description API for delete Feedbacks // @Tags Feedbacks // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param id path int true "Feedbacks ID" // @Success 200 {object} response.Response @@ -219,7 +224,8 @@ func (_i *feedbacksController) Delete(c *fiber.Ctx) error { // @Description API for FeedbackMonthlyStats of Feedbacks // @Tags Feedbacks // @Security Bearer -// @Param Authorization header string true "Insert your access token" default(Bearer ) +// @Param X-Client-Key header string false "Insert the X-Client-Key" +// @Param Authorization header string false "Insert your access token" default(Bearer ) // @Param year query int false "year" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError diff --git a/app/module/magazines/controller/magazines.controller.go b/app/module/magazines/controller/magazines.controller.go index 57762b8..c9495c7 100644 --- a/app/module/magazines/controller/magazines.controller.go +++ b/app/module/magazines/controller/magazines.controller.go @@ -37,6 +37,7 @@ func NewMagazinesController(magazinesService service.MagazinesService) Magazines // @Description API for getting all Magazines // @Tags Magazines // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param req query request.MagazinesQueryRequest false "query parameters" // @Param req query paginator.Pagination false "pagination parameters" // @Success 200 {object} response.Response @@ -80,6 +81,7 @@ func (_i *magazinesController) All(c *fiber.Ctx) error { // @Description API for getting one Magazines // @Tags Magazines // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param id path int true "Magazines ID" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -111,8 +113,9 @@ func (_i *magazinesController) Show(c *fiber.Ctx) error { // @Description API for create Magazines // @Tags Magazines // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" -// @Param Authorization header string true "Insert your access token" default(Bearer ) +// @Param Authorization header string false "Insert your access token" default(Bearer ) // @Param payload body request.MagazinesCreateRequest true "Required payload" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -147,6 +150,7 @@ func (_i *magazinesController) Save(c *fiber.Ctx) error { // @Description API for update Magazines // @Tags Magazines // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param id path int true "Magazines ID" // @Param payload body request.MagazinesUpdateRequest true "Required payload" @@ -185,6 +189,7 @@ func (_i *magazinesController) Update(c *fiber.Ctx) error { // @Tags Magazines // @Security Bearer // @Produce json +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param id path int true "Magazine ID" // @Param files formData file true "Upload thumbnail" @@ -213,6 +218,7 @@ func (_i *magazinesController) SaveThumbnail(c *fiber.Ctx) error { // @Description API for View Thumbnail of Magazines // @Tags Magazines // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param thumbnailName path string true "Magazines Thumbnail Name" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -231,6 +237,7 @@ func (_i *magazinesController) Viewer(c *fiber.Ctx) error { // @Description API for delete Magazines // @Tags Magazines // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param id path int true "Magazines ID" // @Success 200 {object} response.Response diff --git a/app/module/subscription/controller/subscription.controller.go b/app/module/subscription/controller/subscription.controller.go index 3c774fa..2c35a95 100644 --- a/app/module/subscription/controller/subscription.controller.go +++ b/app/module/subscription/controller/subscription.controller.go @@ -37,6 +37,7 @@ func NewSubscriptionController(subscriptionService service.SubscriptionService, // @Description API for getting all Subscription // @Tags Subscription // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param req query request.SubscriptionQueryRequest false "query parameters" // @Param req query paginator.Pagination false "pagination parameters" // @Success 200 {object} response.Response @@ -77,6 +78,7 @@ func (_i *subscriptionController) All(c *fiber.Ctx) error { // @Description API for getting one Subscription // @Tags Subscription // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param id path int true "Subscription ID" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -109,6 +111,7 @@ func (_i *subscriptionController) Show(c *fiber.Ctx) error { // @Description API for create Subscription // @Tags Subscription // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param payload body request.SubscriptionCreateRequest true "Required payload" // @Success 200 {object} response.Response @@ -142,6 +145,7 @@ func (_i *subscriptionController) Save(c *fiber.Ctx) error { // @Description API for update Subscription // @Tags Subscription // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param payload body request.SubscriptionUpdateRequest true "Required payload" // @Param id path int true "Subscription ID" @@ -180,6 +184,7 @@ func (_i *subscriptionController) Update(c *fiber.Ctx) error { // @Description API for delete Subscription // @Tags Subscription // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param id path int true "Subscription ID" // @Success 200 {object} response.Response diff --git a/app/module/user_roles/controller/user_roles.controller.go b/app/module/user_roles/controller/user_roles.controller.go index d3a0724..1e9c5bf 100644 --- a/app/module/user_roles/controller/user_roles.controller.go +++ b/app/module/user_roles/controller/user_roles.controller.go @@ -107,7 +107,7 @@ func (_i *userRolesController) Show(c *fiber.Ctx) error { // @Tags UserRoles // @Security Bearer // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" -// @Param Authorization header string true "Insert your access token" default(Bearer ) +// @Param Authorization header string false "Insert your access token" default(Bearer ) // @Param payload body request.UserRolesCreateRequest true "Required payload" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError diff --git a/app/module/users/controller/users.controller.go b/app/module/users/controller/users.controller.go index b5a5c82..7c11582 100644 --- a/app/module/users/controller/users.controller.go +++ b/app/module/users/controller/users.controller.go @@ -47,6 +47,7 @@ func NewUsersController(usersService service.UsersService) UsersController { // @Description API for getting all Users // @Tags Users // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param req query request.UsersQueryRequest false "query parameters" // @Param req query paginator.Pagination false "pagination parameters" // @Success 200 {object} response.Response @@ -98,6 +99,7 @@ func (_i *usersController) All(c *fiber.Ctx) error { // @Description API for getting one Users // @Tags Users // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param id path int true "Users ID" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -130,6 +132,7 @@ func (_i *usersController) Show(c *fiber.Ctx) error { // @Description API for getting one Users // @Tags Users // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param username path string true "Username" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -159,7 +162,8 @@ func (_i *usersController) ShowByUsername(c *fiber.Ctx) error { // @Description API for ShowUserInfo // @Tags Users // @Security Bearer -// @Param Authorization header string true "Insert your access token" default(Bearer ) +// @Param X-Client-Key header string false "Insert the X-Client-Key" +// @Param Authorization header string false "Insert your access token" default(Bearer ) // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError // @Failure 401 {object} response.UnauthorizedError @@ -188,6 +192,7 @@ func (_i *usersController) ShowInfo(c *fiber.Ctx) error { // @Description API for create Users // @Tags Users // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param Authorization header string false "Insert your access token" default(Bearer ) // @Param payload body request.UsersCreateRequest true "Required payload" @@ -224,6 +229,7 @@ func (_i *usersController) Save(c *fiber.Ctx) error { // @Description API for update Users // @Tags Users // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param id path int true "Users ID" // @Param payload body request.UsersUpdateRequest true "Required payload" @@ -330,6 +336,7 @@ func (_i *usersController) ParetoLogin(c *fiber.Ctx) error { // @Description API for delete Users // @Tags Users // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param id path int true "Users ID" // @Success 200 {object} response.Response @@ -362,8 +369,9 @@ func (_i *usersController) Delete(c *fiber.Ctx) error { // @Description API for SavePassword Users // @Tags Users // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" -// @Param Authorization header string true "Insert your access token" default(Bearer ) +// @Param Authorization header string false "Insert your access token" default(Bearer ) // @Param payload body request.UserSavePassword true "Required payload" // @Success 200 {object} response.Response // @Failure 400 {object} response.BadRequestError @@ -426,6 +434,7 @@ func (_i *usersController) ResetPassword(c *fiber.Ctx) error { // @Description API for ForgotPassword Users // @Tags Users // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param payload body request.UserForgotPassword true "Required payload" // @Success 200 {object} response.Response @@ -516,6 +525,7 @@ func (_i *usersController) OtpValidation(c *fiber.Ctx) error { // @Description API for Email Validation Users // @Tags Users // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param payload body request.UserEmailValidationRequest true "Required payload" // @Success 200 {object} response.Response @@ -548,6 +558,7 @@ func (_i *usersController) EmailValidation(c *fiber.Ctx) error { // @Description API for Setup Email Users // @Tags Users // @Security Bearer +// @Param X-Client-Key header string false "Insert the X-Client-Key" // @Param X-Csrf-Token header string true "Insert the X-Csrf-Token" // @Param payload body request.UserEmailValidationRequest true "Required payload" // @Success 200 {object} response.Response diff --git a/docs/swagger/docs.go b/docs/swagger/docs.go index 0ea1c61..6ccf7ea 100644 --- a/docs/swagger/docs.go +++ b/docs/swagger/docs.go @@ -28,6 +28,12 @@ const docTemplate = `{ ], "summary": "Get all ActivityLogs", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "name": "activityTypeId", @@ -128,6 +134,12 @@ const docTemplate = `{ ], "summary": "Create ActivityLogs", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -193,6 +205,12 @@ const docTemplate = `{ ], "summary": "Get one ActivityLogs", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "ActivityLogs ID", @@ -241,6 +259,14 @@ const docTemplate = `{ "ActivityLogs" ], "summary": "Get activity stats ActivityLogs", + "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + } + ], "responses": { "200": { "description": "OK", @@ -282,6 +308,12 @@ const docTemplate = `{ ], "summary": "update ActivityLogs", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -345,6 +377,12 @@ const docTemplate = `{ ], "summary": "delete ActivityLogs", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -401,6 +439,12 @@ const docTemplate = `{ ], "summary": "Get all Advertisement", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "name": "description", @@ -511,6 +555,12 @@ const docTemplate = `{ ], "summary": "Create Advertisement", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -523,8 +573,7 @@ const docTemplate = `{ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -577,6 +626,12 @@ const docTemplate = `{ ], "summary": "Update Publish Advertisement", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -589,8 +644,7 @@ const docTemplate = `{ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "type": "integer", @@ -651,6 +705,12 @@ const docTemplate = `{ ], "summary": "Upload Advertisement", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -714,6 +774,12 @@ const docTemplate = `{ ], "summary": "Viewer Advertisement", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Content File Name", @@ -763,6 +829,12 @@ const docTemplate = `{ ], "summary": "Get one Advertisement", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "Advertisement ID", @@ -810,6 +882,12 @@ const docTemplate = `{ ], "summary": "update Advertisement", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -873,6 +951,12 @@ const docTemplate = `{ ], "summary": "delete Advertisement", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -1034,6 +1118,12 @@ const docTemplate = `{ ], "summary": "Create ArticleApprovals", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -1046,8 +1136,7 @@ const docTemplate = `{ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -1266,13 +1355,18 @@ const docTemplate = `{ ], "summary": "Get all ArticleCategories", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "type": "integer", @@ -1389,6 +1483,12 @@ const docTemplate = `{ ], "summary": "Create ArticleCategories", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -1401,8 +1501,7 @@ const docTemplate = `{ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -1455,6 +1554,12 @@ const docTemplate = `{ ], "summary": "Get one ArticleCategories", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "ArticleCategories Old ID", @@ -1504,6 +1609,12 @@ const docTemplate = `{ ], "summary": "Get one ArticleCategories", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "ArticleCategories Slug", @@ -1553,6 +1664,12 @@ const docTemplate = `{ ], "summary": "Viewer ArticleCategories", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "ArticleCategories ID", @@ -1605,6 +1722,12 @@ const docTemplate = `{ ], "summary": "Upload ArticleCategories Thumbnail", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -1668,6 +1791,12 @@ const docTemplate = `{ ], "summary": "Get one ArticleCategories", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "ArticleCategories ID", @@ -1715,6 +1844,12 @@ const docTemplate = `{ ], "summary": "update ArticleCategories", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -1778,6 +1913,12 @@ const docTemplate = `{ ], "summary": "delete ArticleCategories", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -2108,6 +2249,12 @@ const docTemplate = `{ ], "summary": "Get all ArticleComments", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "name": "articleId", @@ -2213,6 +2360,12 @@ const docTemplate = `{ ], "summary": "Create ArticleComments", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -2225,8 +2378,7 @@ const docTemplate = `{ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -2279,6 +2431,12 @@ const docTemplate = `{ ], "summary": "Approval ArticleComments", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -2337,6 +2495,12 @@ const docTemplate = `{ ], "summary": "Get one ArticleComments", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "ArticleComments ID", @@ -2384,6 +2548,12 @@ const docTemplate = `{ ], "summary": "update ArticleComments", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -2447,6 +2617,12 @@ const docTemplate = `{ ], "summary": "delete ArticleComments", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -2503,6 +2679,12 @@ const docTemplate = `{ ], "summary": "Get all ArticleFiles", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "name": "articleId", @@ -2654,6 +2836,12 @@ const docTemplate = `{ ], "summary": "Viewer ArticleFiles", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Article File Name", @@ -2706,6 +2894,12 @@ const docTemplate = `{ ], "summary": "Upload ArticleFiles", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -2769,6 +2963,12 @@ const docTemplate = `{ ], "summary": "Get one ArticleFiles", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "ArticleFiles ID", @@ -2816,6 +3016,12 @@ const docTemplate = `{ ], "summary": "Update ArticleFiles", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -2879,6 +3085,12 @@ const docTemplate = `{ ], "summary": "Delete ArticleFiles", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -3496,8 +3708,7 @@ const docTemplate = `{ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -3674,8 +3885,7 @@ const docTemplate = `{ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "type": "integer", @@ -3736,8 +3946,7 @@ const docTemplate = `{ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "type": "integer", @@ -3792,8 +4001,7 @@ const docTemplate = `{ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" } ], "responses": { @@ -3842,8 +4050,7 @@ const docTemplate = `{ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "type": "string", @@ -4552,8 +4759,7 @@ const docTemplate = `{ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -4758,6 +4964,12 @@ const docTemplate = `{ ], "summary": "Get all CustomStaticPages", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "name": "description", @@ -4858,6 +5070,12 @@ const docTemplate = `{ ], "summary": "Create CustomStaticPages", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -4916,6 +5134,12 @@ const docTemplate = `{ ], "summary": "Get one CustomStaticPages", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "CustomStaticPages Slug", @@ -4965,6 +5189,12 @@ const docTemplate = `{ ], "summary": "Get one CustomStaticPages", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "CustomStaticPages ID", @@ -5012,6 +5242,12 @@ const docTemplate = `{ ], "summary": "update CustomStaticPages", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -5075,6 +5311,12 @@ const docTemplate = `{ ], "summary": "delete CustomStaticPages", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -5382,6 +5624,12 @@ const docTemplate = `{ ], "summary": "Get all Feedbacks", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "name": "commentFromEmail", @@ -5492,6 +5740,12 @@ const docTemplate = `{ ], "summary": "Create Feedbacks", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -5504,8 +5758,7 @@ const docTemplate = `{ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -5558,13 +5811,18 @@ const docTemplate = `{ ], "summary": "FeedbackMonthlyStats Feedbacks", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "type": "integer", @@ -5614,6 +5872,12 @@ const docTemplate = `{ ], "summary": "Get one Feedbacks", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "Feedbacks ID", @@ -5661,6 +5925,12 @@ const docTemplate = `{ ], "summary": "update Feedbacks", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -5724,6 +5994,12 @@ const docTemplate = `{ ], "summary": "delete Feedbacks", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -6103,6 +6379,12 @@ const docTemplate = `{ ], "summary": "Get all Magazines", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "name": "createdById", @@ -6223,6 +6505,12 @@ const docTemplate = `{ ], "summary": "Create Magazines", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -6235,8 +6523,7 @@ const docTemplate = `{ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -6289,6 +6576,12 @@ const docTemplate = `{ ], "summary": "Viewer Magazines Thumbnail", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Magazines Thumbnail Name", @@ -6341,6 +6634,12 @@ const docTemplate = `{ ], "summary": "Save Thumbnail Magazines", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -6404,6 +6703,12 @@ const docTemplate = `{ ], "summary": "Get one Magazines", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "Magazines ID", @@ -6451,6 +6756,12 @@ const docTemplate = `{ ], "summary": "Update Magazines", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -6514,6 +6825,12 @@ const docTemplate = `{ ], "summary": "Delete Magazines", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -7717,6 +8034,12 @@ const docTemplate = `{ ], "summary": "Get all Subscription", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "name": "email", @@ -7802,6 +8125,12 @@ const docTemplate = `{ ], "summary": "Create Subscription", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -7860,6 +8189,12 @@ const docTemplate = `{ ], "summary": "Get one Subscription", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "Subscription ID", @@ -7907,6 +8242,12 @@ const docTemplate = `{ ], "summary": "update Subscription", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -7970,6 +8311,12 @@ const docTemplate = `{ ], "summary": "delete Subscription", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -9120,8 +9467,7 @@ const docTemplate = `{ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -9340,6 +9686,12 @@ const docTemplate = `{ ], "summary": "Get all Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "name": "email", @@ -9480,6 +9832,12 @@ const docTemplate = `{ ], "summary": "Create Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -9545,6 +9903,12 @@ const docTemplate = `{ ], "summary": "Get one Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "Users ID", @@ -9594,6 +9958,12 @@ const docTemplate = `{ ], "summary": "EmailValidation Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -9652,6 +10022,12 @@ const docTemplate = `{ ], "summary": "ForgotPassword Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -9710,13 +10086,18 @@ const docTemplate = `{ ], "summary": "ShowInfo Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" } ], "responses": { @@ -10050,6 +10431,12 @@ const docTemplate = `{ ], "summary": "SavePassword Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -10062,8 +10449,7 @@ const docTemplate = `{ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -10116,6 +10502,12 @@ const docTemplate = `{ ], "summary": "SetupEmail Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -10174,6 +10566,12 @@ const docTemplate = `{ ], "summary": "Get one Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Username", @@ -10223,6 +10621,12 @@ const docTemplate = `{ ], "summary": "update Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -10286,6 +10690,12 @@ const docTemplate = `{ ], "summary": "delete Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", diff --git a/docs/swagger/swagger.json b/docs/swagger/swagger.json index b94ea4f..f44e929 100644 --- a/docs/swagger/swagger.json +++ b/docs/swagger/swagger.json @@ -17,6 +17,12 @@ ], "summary": "Get all ActivityLogs", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "name": "activityTypeId", @@ -117,6 +123,12 @@ ], "summary": "Create ActivityLogs", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -182,6 +194,12 @@ ], "summary": "Get one ActivityLogs", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "ActivityLogs ID", @@ -230,6 +248,14 @@ "ActivityLogs" ], "summary": "Get activity stats ActivityLogs", + "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + } + ], "responses": { "200": { "description": "OK", @@ -271,6 +297,12 @@ ], "summary": "update ActivityLogs", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -334,6 +366,12 @@ ], "summary": "delete ActivityLogs", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -390,6 +428,12 @@ ], "summary": "Get all Advertisement", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "name": "description", @@ -500,6 +544,12 @@ ], "summary": "Create Advertisement", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -512,8 +562,7 @@ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -566,6 +615,12 @@ ], "summary": "Update Publish Advertisement", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -578,8 +633,7 @@ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "type": "integer", @@ -640,6 +694,12 @@ ], "summary": "Upload Advertisement", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -703,6 +763,12 @@ ], "summary": "Viewer Advertisement", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Content File Name", @@ -752,6 +818,12 @@ ], "summary": "Get one Advertisement", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "Advertisement ID", @@ -799,6 +871,12 @@ ], "summary": "update Advertisement", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -862,6 +940,12 @@ ], "summary": "delete Advertisement", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -1023,6 +1107,12 @@ ], "summary": "Create ArticleApprovals", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -1035,8 +1125,7 @@ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -1255,13 +1344,18 @@ ], "summary": "Get all ArticleCategories", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "type": "integer", @@ -1378,6 +1472,12 @@ ], "summary": "Create ArticleCategories", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -1390,8 +1490,7 @@ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -1444,6 +1543,12 @@ ], "summary": "Get one ArticleCategories", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "ArticleCategories Old ID", @@ -1493,6 +1598,12 @@ ], "summary": "Get one ArticleCategories", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "ArticleCategories Slug", @@ -1542,6 +1653,12 @@ ], "summary": "Viewer ArticleCategories", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "ArticleCategories ID", @@ -1594,6 +1711,12 @@ ], "summary": "Upload ArticleCategories Thumbnail", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -1657,6 +1780,12 @@ ], "summary": "Get one ArticleCategories", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "ArticleCategories ID", @@ -1704,6 +1833,12 @@ ], "summary": "update ArticleCategories", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -1767,6 +1902,12 @@ ], "summary": "delete ArticleCategories", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -2097,6 +2238,12 @@ ], "summary": "Get all ArticleComments", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "name": "articleId", @@ -2202,6 +2349,12 @@ ], "summary": "Create ArticleComments", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -2214,8 +2367,7 @@ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -2268,6 +2420,12 @@ ], "summary": "Approval ArticleComments", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -2326,6 +2484,12 @@ ], "summary": "Get one ArticleComments", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "ArticleComments ID", @@ -2373,6 +2537,12 @@ ], "summary": "update ArticleComments", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -2436,6 +2606,12 @@ ], "summary": "delete ArticleComments", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -2492,6 +2668,12 @@ ], "summary": "Get all ArticleFiles", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "name": "articleId", @@ -2643,6 +2825,12 @@ ], "summary": "Viewer ArticleFiles", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Article File Name", @@ -2695,6 +2883,12 @@ ], "summary": "Upload ArticleFiles", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -2758,6 +2952,12 @@ ], "summary": "Get one ArticleFiles", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "ArticleFiles ID", @@ -2805,6 +3005,12 @@ ], "summary": "Update ArticleFiles", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -2868,6 +3074,12 @@ ], "summary": "Delete ArticleFiles", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -3485,8 +3697,7 @@ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -3663,8 +3874,7 @@ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "type": "integer", @@ -3725,8 +3935,7 @@ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "type": "integer", @@ -3781,8 +3990,7 @@ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" } ], "responses": { @@ -3831,8 +4039,7 @@ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "type": "string", @@ -4541,8 +4748,7 @@ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -4747,6 +4953,12 @@ ], "summary": "Get all CustomStaticPages", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "name": "description", @@ -4847,6 +5059,12 @@ ], "summary": "Create CustomStaticPages", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -4905,6 +5123,12 @@ ], "summary": "Get one CustomStaticPages", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "CustomStaticPages Slug", @@ -4954,6 +5178,12 @@ ], "summary": "Get one CustomStaticPages", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "CustomStaticPages ID", @@ -5001,6 +5231,12 @@ ], "summary": "update CustomStaticPages", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -5064,6 +5300,12 @@ ], "summary": "delete CustomStaticPages", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -5371,6 +5613,12 @@ ], "summary": "Get all Feedbacks", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "name": "commentFromEmail", @@ -5481,6 +5729,12 @@ ], "summary": "Create Feedbacks", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -5493,8 +5747,7 @@ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -5547,13 +5800,18 @@ ], "summary": "FeedbackMonthlyStats Feedbacks", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "type": "integer", @@ -5603,6 +5861,12 @@ ], "summary": "Get one Feedbacks", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "Feedbacks ID", @@ -5650,6 +5914,12 @@ ], "summary": "update Feedbacks", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -5713,6 +5983,12 @@ ], "summary": "delete Feedbacks", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -6092,6 +6368,12 @@ ], "summary": "Get all Magazines", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "name": "createdById", @@ -6212,6 +6494,12 @@ ], "summary": "Create Magazines", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -6224,8 +6512,7 @@ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -6278,6 +6565,12 @@ ], "summary": "Viewer Magazines Thumbnail", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Magazines Thumbnail Name", @@ -6330,6 +6623,12 @@ ], "summary": "Save Thumbnail Magazines", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -6393,6 +6692,12 @@ ], "summary": "Get one Magazines", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "Magazines ID", @@ -6440,6 +6745,12 @@ ], "summary": "Update Magazines", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -6503,6 +6814,12 @@ ], "summary": "Delete Magazines", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -7706,6 +8023,12 @@ ], "summary": "Get all Subscription", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "name": "email", @@ -7791,6 +8114,12 @@ ], "summary": "Create Subscription", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -7849,6 +8178,12 @@ ], "summary": "Get one Subscription", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "Subscription ID", @@ -7896,6 +8231,12 @@ ], "summary": "update Subscription", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -7959,6 +8300,12 @@ ], "summary": "delete Subscription", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -9109,8 +9456,7 @@ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -9329,6 +9675,12 @@ ], "summary": "Get all Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "name": "email", @@ -9469,6 +9821,12 @@ ], "summary": "Create Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -9534,6 +9892,12 @@ ], "summary": "Get one Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "integer", "description": "Users ID", @@ -9583,6 +9947,12 @@ ], "summary": "EmailValidation Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -9641,6 +10011,12 @@ ], "summary": "ForgotPassword Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -9699,13 +10075,18 @@ ], "summary": "ShowInfo Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" } ], "responses": { @@ -10039,6 +10420,12 @@ ], "summary": "SavePassword Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -10051,8 +10438,7 @@ "default": "Bearer \u003cAdd access token here\u003e", "description": "Insert your access token", "name": "Authorization", - "in": "header", - "required": true + "in": "header" }, { "description": "Required payload", @@ -10105,6 +10491,12 @@ ], "summary": "SetupEmail Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -10163,6 +10555,12 @@ ], "summary": "Get one Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Username", @@ -10212,6 +10610,12 @@ ], "summary": "update Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", @@ -10275,6 +10679,12 @@ ], "summary": "delete Users", "parameters": [ + { + "type": "string", + "description": "Insert the X-Client-Key", + "name": "X-Client-Key", + "in": "header" + }, { "type": "string", "description": "Insert the X-Csrf-Token", diff --git a/docs/swagger/swagger.yaml b/docs/swagger/swagger.yaml index 98d19f2..ef4f8b3 100644 --- a/docs/swagger/swagger.yaml +++ b/docs/swagger/swagger.yaml @@ -971,6 +971,10 @@ paths: get: description: API for getting all ActivityLogs parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - in: query name: activityTypeId type: integer @@ -1032,6 +1036,10 @@ paths: post: description: API for create ActivityLogs parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -1074,6 +1082,10 @@ paths: delete: description: API for delete ActivityLogs parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -1109,6 +1121,10 @@ paths: put: description: API for update ActivityLogs parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -1151,6 +1167,10 @@ paths: get: description: API for getting one ActivityLogs parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: ActivityLogs ID in: path name: id @@ -1181,6 +1201,11 @@ paths: /activity-logs/statistics: get: description: API for get activity stats ActivityLogs + parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string responses: "200": description: OK @@ -1207,6 +1232,10 @@ paths: get: description: API for getting all Advertisement parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - in: query name: description type: string @@ -1274,6 +1303,10 @@ paths: post: description: API for create Advertisement parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -1283,7 +1316,6 @@ paths: description: Insert your access token in: header name: Authorization - required: true type: string - description: Required payload in: body @@ -1317,6 +1349,10 @@ paths: delete: description: API for delete Advertisement parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -1352,6 +1388,10 @@ paths: get: description: API for getting one Advertisement parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Advertisement ID in: path name: id @@ -1382,6 +1422,10 @@ paths: put: description: API for update Advertisement parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -1424,6 +1468,10 @@ paths: put: description: API for Update Publish Advertisement parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -1433,7 +1481,6 @@ paths: description: Insert your access token in: header name: Authorization - required: true type: string - description: Advertisement ID in: path @@ -1471,6 +1518,10 @@ paths: post: description: API for Upload File Advertisement parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -1514,6 +1565,10 @@ paths: get: description: API for Viewer Advertisement parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Content File Name in: path name: filename @@ -1609,6 +1664,10 @@ paths: post: description: API for create ArticleApprovals parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -1618,7 +1677,6 @@ paths: description: Insert your access token in: header name: Authorization - required: true type: string - description: Required payload in: body @@ -1759,11 +1817,14 @@ paths: get: description: API for getting all ArticleCategories parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - default: Bearer description: Insert your access token in: header name: Authorization - required: true type: string - in: query name: UserLevelId @@ -1835,6 +1896,10 @@ paths: post: description: API for create ArticleCategories parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -1844,7 +1909,6 @@ paths: description: Insert your access token in: header name: Authorization - required: true type: string - description: Required payload in: body @@ -1878,6 +1942,10 @@ paths: delete: description: API for delete ArticleCategories parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -1913,6 +1981,10 @@ paths: get: description: API for getting one ArticleCategories parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: ArticleCategories ID in: path name: id @@ -1943,6 +2015,10 @@ paths: put: description: API for update ArticleCategories parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -1985,6 +2061,10 @@ paths: get: description: API for getting one ArticleCategories parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: ArticleCategories Old ID in: path name: id @@ -2016,6 +2096,10 @@ paths: get: description: API for getting one ArticleCategories parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: ArticleCategories Slug in: path name: slug @@ -2047,6 +2131,10 @@ paths: post: description: API for Upload ArticleCategories Thumbnail parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -2090,6 +2178,10 @@ paths: get: description: API for View Thumbnail of ArticleCategories parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: ArticleCategories ID in: path name: id @@ -2297,6 +2389,10 @@ paths: get: description: API for getting all ArticleComments parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - in: query name: articleId type: integer @@ -2361,6 +2457,10 @@ paths: post: description: API for create ArticleComments parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -2370,7 +2470,6 @@ paths: description: Insert your access token in: header name: Authorization - required: true type: string - description: Required payload in: body @@ -2404,6 +2503,10 @@ paths: delete: description: API for delete ArticleComments parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -2439,6 +2542,10 @@ paths: get: description: API for getting one ArticleComments parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: ArticleComments ID in: path name: id @@ -2469,6 +2576,10 @@ paths: put: description: API for update ArticleComments parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -2511,6 +2622,10 @@ paths: post: description: API for Approval ArticleComments parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -2548,6 +2663,10 @@ paths: get: description: API for getting all ArticleFiles parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - in: query name: articleId type: integer @@ -2610,6 +2729,10 @@ paths: post: description: API for create ArticleFiles parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -2653,6 +2776,10 @@ paths: delete: description: API for delete ArticleFiles parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -2688,6 +2815,10 @@ paths: get: description: API for getting one ArticleFiles parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: ArticleFiles ID in: path name: id @@ -2718,6 +2849,10 @@ paths: put: description: API for update ArticleFiles parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -2791,6 +2926,10 @@ paths: get: description: API for Viewer ArticleFiles parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Article File Name in: path name: filename @@ -3175,7 +3314,6 @@ paths: description: Insert your access token in: header name: Authorization - required: true type: string - description: Required payload in: body @@ -3397,7 +3535,6 @@ paths: description: Insert your access token in: header name: Authorization - required: true type: string - description: article id in: query @@ -3437,7 +3574,6 @@ paths: description: Insert your access token in: header name: Authorization - required: true type: string - description: year in: query @@ -3473,7 +3609,6 @@ paths: description: Insert your access token in: header name: Authorization - required: true type: string responses: "200": @@ -3505,7 +3640,6 @@ paths: description: Insert your access token in: header name: Authorization - required: true type: string - description: start date in: query @@ -3851,7 +3985,6 @@ paths: description: Insert your access token in: header name: Authorization - required: true type: string - description: Required payload in: body @@ -3982,6 +4115,10 @@ paths: get: description: API for getting all CustomStaticPages parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - in: query name: description type: string @@ -4043,6 +4180,10 @@ paths: post: description: API for create CustomStaticPages parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -4080,6 +4221,10 @@ paths: delete: description: API for delete CustomStaticPages parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -4115,6 +4260,10 @@ paths: get: description: API for getting one CustomStaticPages parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: CustomStaticPages ID in: path name: id @@ -4145,6 +4294,10 @@ paths: put: description: API for update CustomStaticPages parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -4187,6 +4340,10 @@ paths: get: description: API for getting one CustomStaticPages parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: CustomStaticPages Slug in: path name: slug @@ -4378,6 +4535,10 @@ paths: get: description: API for getting all Feedbacks parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - in: query name: commentFromEmail type: string @@ -4445,6 +4606,10 @@ paths: post: description: API for create Feedbacks parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -4454,7 +4619,6 @@ paths: description: Insert your access token in: header name: Authorization - required: true type: string - description: Required payload in: body @@ -4488,6 +4652,10 @@ paths: delete: description: API for delete Feedbacks parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -4523,6 +4691,10 @@ paths: get: description: API for getting one Feedbacks parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Feedbacks ID in: path name: id @@ -4553,6 +4725,10 @@ paths: put: description: API for update Feedbacks parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -4595,11 +4771,14 @@ paths: get: description: API for FeedbackMonthlyStats of Feedbacks parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - default: Bearer description: Insert your access token in: header name: Authorization - required: true type: string - description: year in: query @@ -4839,6 +5018,10 @@ paths: get: description: API for getting all Magazines parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - in: query name: createdById type: integer @@ -4912,6 +5095,10 @@ paths: post: description: API for create Magazines parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -4921,7 +5108,6 @@ paths: description: Insert your access token in: header name: Authorization - required: true type: string - description: Required payload in: body @@ -4955,6 +5141,10 @@ paths: delete: description: API for delete Magazines parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -4990,6 +5180,10 @@ paths: get: description: API for getting one Magazines parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Magazines ID in: path name: id @@ -5020,6 +5214,10 @@ paths: put: description: API for update Magazines parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -5062,6 +5260,10 @@ paths: post: description: API for Save Thumbnail of Magazines parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -5105,6 +5307,10 @@ paths: get: description: API for View Thumbnail of Magazines parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Magazines Thumbnail Name in: path name: thumbnailName @@ -5864,6 +6070,10 @@ paths: get: description: API for getting all Subscription parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - in: query name: email type: string @@ -5916,6 +6126,10 @@ paths: post: description: API for create Subscription parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -5953,6 +6167,10 @@ paths: delete: description: API for delete Subscription parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -5988,6 +6206,10 @@ paths: get: description: API for getting one Subscription parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Subscription ID in: path name: id @@ -6018,6 +6240,10 @@ paths: put: description: API for update Subscription parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -6756,7 +6982,6 @@ paths: description: Insert your access token in: header name: Authorization - required: true type: string - description: Required payload in: body @@ -6897,6 +7122,10 @@ paths: get: description: API for getting all Users parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - in: query name: email type: string @@ -6982,6 +7211,10 @@ paths: post: description: API for create Users parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -7024,6 +7257,10 @@ paths: delete: description: API for delete Users parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -7059,6 +7296,10 @@ paths: put: description: API for update Users parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -7101,6 +7342,10 @@ paths: get: description: API for getting one Users parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Users ID in: path name: id @@ -7132,6 +7377,10 @@ paths: post: description: API for Email Validation Users parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -7169,6 +7418,10 @@ paths: post: description: API for ForgotPassword Users parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -7206,11 +7459,14 @@ paths: get: description: API for ShowUserInfo parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - default: Bearer description: Insert your access token in: header name: Authorization - required: true type: string responses: "200": @@ -7423,6 +7679,10 @@ paths: post: description: API for SavePassword Users parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -7432,7 +7692,6 @@ paths: description: Insert your access token in: header name: Authorization - required: true type: string - description: Required payload in: body @@ -7466,6 +7725,10 @@ paths: post: description: API for Setup Email Users parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Insert the X-Csrf-Token in: header name: X-Csrf-Token @@ -7503,6 +7766,10 @@ paths: get: description: API for getting one Users parameters: + - description: Insert the X-Client-Key + in: header + name: X-Client-Key + type: string - description: Username in: path name: username