{"swaggerDoc":{"swagger":"2.0","info":{"title":"Betting App","description":"Betting","version":"1.0"},"produces":["application/json"],"basePath":"","securityDefinitions":{"Bearer":{"type":"apiKey","name":"authorization","in":"header"}},"paths":{"/api/v1/admin/user/listing":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"limit","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"skip","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"sortBy","in":"query","description":"","required":false,"type":"string","value":""},{"name":"orderBy","in":"query","description":"","required":false,"type":"string","value":""},{"name":"search","in":"query","description":"","required":false,"type":"string","allowReserved":true,"value":""},{"name":"isBlocked","in":"query","description":"","required":false,"type":"string","allowReserved":true,"value":""}],"responses":{}}},"/api/v1/admin/user/Detail":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"query","description":"id is required","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/user/userFollower":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"query","description":"id is required","type":"integer","value":"","required":true},{"name":"limit","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"skip","in":"query","description":"","type":"integer","required":false,"value":""}],"responses":{}}},"/api/v1/admin/user/userFollowing":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"query","description":"id is required","type":"integer","value":"","required":true},{"name":"limit","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"skip","in":"query","description":"","type":"integer","required":false,"value":""}],"responses":{}}},"/api/v1/admin/user/UserActivity":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"query","description":"id is required","type":"integer","value":"","required":true},{"name":"limit","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"skip","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"filter","in":"query","description":"1= pollComments, 2= upVotesCount, 3= downVotesCount,4=pollCommentReply, 5= poll user answer, 6 = group_joines,7= login, 8 =posted ","type":"integer","required":false}],"responses":{}}},"/api/v1/admin/user/blockUnblock":{"put":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"formData","description":"id is required","required":true,"type":"integer","value":""},{"name":"isBlocked","in":"formData","description":"","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/user/DeletedUser/listing":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"limit","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"skip","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"sortBy","in":"query","description":"","required":false,"type":"string","value":""},{"name":"orderBy","in":"query","description":"","required":false,"type":"string","value":""},{"name":"search","in":"query","description":"","required":false,"type":"string","allowReserved":true,"value":""}],"responses":{}}},"/api/v1/admin/user/delete":{"put":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"formData","description":"id is required","type":"integer","value":"","required":true},{"name":"reason","in":"formData","description":"reason is required","required":false,"type":"string","value":""}],"responses":{}}},"/api/v1/admin/user/coin/addUpdate":{"post":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"formData","description":"id if want to update","required":false,"type":"integer","value":""},{"name":"signUpCredits","in":"formData","description":"","type":"integer","value":"","required":true},{"name":"negativeCredits","in":"formData","description":"","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/user/increaseCoinBalance":{"post":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"formData","description":"user id","required":false,"type":"integer","value":""},{"name":"potentialReward","in":"formData","description":"","type":"integer","required":false}],"responses":{}}},"/api/v1/admin/user/reduceCoinBalance":{"post":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"formData","description":"user id","required":false,"type":"integer","value":""},{"name":"potentialLoss","in":"formData","description":"","type":"integer","required":false}],"responses":{}}},"/api/v1/admin/user/coin/list":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[],"responses":{}}},"/api/v1/admin/user/transactionHistory":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"query","description":"id is required","type":"integer","value":"","required":true},{"name":"limit","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"skip","in":"query","description":"","type":"integer","required":false,"value":""}],"responses":{}}},"/api/v1/admin/user/topicRank":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"query","description":"id is required","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/group/listing":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminGroup"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"limit","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"skip","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"sortBy","in":"query","description":"","required":false,"type":"string","value":""},{"name":"orderBy","in":"query","description":"","required":false,"type":"string","value":""},{"name":"search","in":"query","description":"","required":false,"type":"string","allowReserved":true,"value":""},{"name":"isHideShow","in":"query","description":"1 Hide and 0 for NO","type":"integer","value":"","required":false},{"name":"isDeleted","in":"query","description":"1 Delete and 0 for NO","type":"integer","value":"","required":false},{"name":"topicId","in":"query","description":"","required":false,"type":"string","allowReserved":true,"value":""}],"responses":{}}},"/api/v1/admin/group/adminGroupTopics":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminGroup"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"limit","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"skip","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"sortBy","in":"query","description":"","required":false,"type":"string","value":""},{"name":"orderBy","in":"query","description":"","required":false,"type":"string","value":""}],"responses":{}}},"/api/v1/admin/group/groupPollComments":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminGroup"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"groupPollId","in":"query","description":"Id is required","type":"number","value":"","required":true},{"name":"limit","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"skip","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"sortBy","in":"query","description":"","required":false,"type":"string","value":""},{"name":"orderBy","in":"query","description":"","required":false,"type":"string","value":""},{"name":"search","in":"query","description":"","required":false,"type":"string","allowReserved":true,"value":""},{"name":"commentFilter","in":"query","description":"1 for upVotes and 2 for downVotes (optional)","required":false,"type":"string","allowReserved":true,"value":""}],"responses":{}}},"/api/v1/admin/group/hideComments":{"put":{"x-swagger-router-controller":"middleware-name1","tags":["AdminGroup"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"formData","description":"id is required","required":true,"type":"integer","value":""},{"name":"isBlocked","in":"formData","description":"Hide value 0 for No and 1 for Yes","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/group/Detail":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminGroup"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"query","description":"id is required","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/group/listingPoll":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminGroup"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"groupId","in":"query","description":"Id is required","type":"number","value":"","required":true},{"name":"limit","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"skip","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"sortBy","in":"query","description":"","required":false,"type":"string","value":""},{"name":"orderBy","in":"query","description":"","required":false,"type":"string","value":""},{"name":"search","in":"query","description":"","required":false,"type":"string","allowReserved":true,"value":""},{"name":"pollFilter","in":"query","description":"1 Active No and 2 for past","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/group/DetailGroupPoll":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminGroup"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"query","description":"id is required","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/group/isPrivate":{"put":{"x-swagger-router-controller":"middleware-name1","tags":["AdminGroup"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"formData","description":"id is required","required":true,"type":"integer","value":""},{"name":"isPrivate","in":"formData","description":"0 = public , 1 = private","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/group/isPosted":{"put":{"x-swagger-router-controller":"middleware-name1","tags":["AdminGroup"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"formData","description":"id is required","required":true,"type":"integer","value":""},{"name":"isAdminPostOnly","in":"formData","description":"0 = public , 1 = private","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/group/groupPollHide":{"put":{"x-swagger-router-controller":"middleware-name1","tags":["AdminGroup"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"formData","description":"id is required","required":true,"type":"integer","value":""},{"name":"isHideShow","in":"formData","description":"","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/group/hideUnhide":{"put":{"x-swagger-router-controller":"middleware-name1","tags":["AdminGroup"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"formData","description":"id is required","required":true,"type":"integer","value":""},{"name":"isHideShow","in":"formData","description":"","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/group/delete":{"delete":{"x-swagger-router-controller":"middleware-name1","tags":["AdminGroup"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"formData","description":"id is required","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/pollReport/listing":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminPollReport"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"limit","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"skip","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"sortBy","in":"query","description":"","required":false,"type":"string","value":""},{"name":"orderBy","in":"query","description":"","required":false,"type":"string","value":""},{"name":"search","in":"query","description":"","required":false,"type":"string","allowReserved":true,"value":""}],"responses":{}}},"/api/v1/admin/pollReport/Detail":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminPollReport"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"query","description":"id is required","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/pollReport/delete":{"delete":{"x-swagger-router-controller":"middleware-name1","tags":["AdminPollReport"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"formData","description":"id is required","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/feedback/listing":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminFeedback"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"limit","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"skip","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"sortBy","in":"query","description":"","required":false,"type":"string","value":""},{"name":"orderBy","in":"query","description":"","required":false,"type":"string","value":""},{"name":"search","in":"query","description":"","required":false,"type":"string","allowReserved":true,"value":""}],"responses":{}}},"/api/v1/admin/feedback/Detail":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminFeedback"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"query","description":"id is required","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/feedback/delete":{"delete":{"x-swagger-router-controller":"middleware-name1","tags":["AdminFeedback"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"formData","description":"id is required","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/achievement/add":{"post":{"x-swagger-router-controller":"middleware-name1","tags":["AdminAchievement"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"category","in":"formData","description":"category is required","required":true,"type":"integer","value":""},{"name":"name","in":"formData","description":"name is required","type":"string","value":"","required":true},{"name":"nameHK","in":"formData","description":"name HK is required","type":"string","value":"","required":true},{"name":"nameCN","in":"formData","description":"name CN is required","type":"string","value":"","required":true},{"name":"description","in":"formData","description":"description is required","type":"string","value":"","required":true},{"name":"descriptionHK","in":"formData","description":"description HK is required","type":"string","value":"","required":true},{"name":"descriptionCN","in":"formData","description":"description CN is required","type":"string","value":"","required":true},{"name":"badgeImage","in":"formData","description":"","type":"string","value":"","required":true},{"name":"criteria","in":"formData","description":"[{unit:string,number:integer}]","type":"string","value":"","required":true},{"name":"rewards","in":"formData","description":"","type":"integer","value":"","required":true},{"name":"additionalNotes","in":"formData","description":"","type":"string","value":"","required":false}],"responses":{}}},"/api/v1/admin/achievement/update":{"put":{"x-swagger-router-controller":"middleware-name1","tags":["AdminAchievement"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"formData","description":"id is required","required":true,"type":"integer","value":""},{"name":"category","in":"formData","description":"category is required","required":false,"type":"integer","value":""},{"name":"name","in":"formData","description":"","type":"string","value":"","required":false},{"name":"description","in":"formData","description":"","type":"string","value":"","required":false},{"name":"badgeImage","in":"formData","description":"","type":"string","value":"","required":false},{"name":"criteria","in":"formData","description":"[{id:integer,unit:string,number:integer}]","type":"string","value":"","required":false},{"name":"rewards","in":"formData","description":"","type":"integer","value":"","required":false},{"name":"additionalNotes","in":"formData","description":"","type":"string","value":"","required":false},{"name":"achievementDetails","in":"formData","description":"achievementDetails are in Array","required":false,"schema":{"$ref":"#/definitions/subTopicName"}},{"name":"deletedUnitIds","in":"formData","description":"delete ids must be array of interger","type":"string","value":"","required":false}],"responses":{}}},"/api/v1/admin/achievement/putAchievementImageToS3":{"put":{"x-swagger-router-controller":"middleware-name1","tags":["AdminAchievement"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"achievementImage","in":"formData","description":"achievementImage is required","required":true,"type":"file","value":""}],"responses":{}}},"/api/v1/admin/achievement/listing":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminAchievement"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"limit","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"skip","in":"query","description":"","type":"integer","required":false,"value":""},{"name":"sortBy","in":"query","description":"","required":false,"type":"string","value":""},{"name":"orderBy","in":"query","description":"","required":false,"type":"string","value":""},{"name":"search","in":"query","description":"","required":false,"type":"string","allowReserved":true,"value":""},{"name":"isDeleted","in":"query","description":"","required":false,"type":"string","allowReserved":true,"value":""},{"name":"filter","in":"query","description":"","required":false,"type":"string","allowReserved":true,"value":""}],"responses":{}}},"/api/v1/admin/achievement/Detail":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminAchievement"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"query","description":"id is required","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/achievement/delete":{"delete":{"x-swagger-router-controller":"middleware-name1","tags":["AdminAchievement"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"formData","description":"id is required","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/achievement/categories":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminAchievement"],"description":"","security":[{"Bearer":[]}],"parameters":[],"responses":{}}},"/api/v1/admin/achievement/units":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminAchievement"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"query","description":"id is required","type":"integer","value":"","required":true},{"name":"type","in":"query","description":"type is required(1-Achievement, 2-Task)","type":"integer","value":"","required":true}],"responses":{}}},"/api/v1/admin/achievement/testAchievements":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminAchievement"],"description":"","parameters":[],"responses":{}}},"/api/v1/admin/user/userActivity":{"post":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"userId","in":"formData","description":"userId is required","required":true,"type":"integer","value":""},{"name":"filter","in":"formData","description":"","type":"integer","value":"","required":true},{"name":"limit","in":"formData","description":"limit is optional","type":"integer","required":false,"value":""},{"name":"skip","in":"formData","description":"skip is optional","type":"integer","required":false,"value":""}],"responses":{}}},"/api/v1/admin/user/pointUpdate":{"post":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"userId","in":"formData","description":"userId is required","required":true,"type":"integer","value":""},{"name":"point","in":"formData","description":"","type":"integer","value":"","required":true},{"name":"isType","in":"formData","description":"1 increase and 2 decrease ","type":"integer","required":false,"value":""}],"responses":{}}},"/api/v1/admin/user/pointHistory":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"userId","in":"query","description":"userId is required","required":true,"type":"integer","value":""},{"name":"limit","in":"query","description":"limit is optional","type":"integer","required":false,"value":""},{"name":"skip","in":"query","description":"skip is optional","type":"integer","required":false,"value":""}],"responses":{}}},"/api/v1/admin/user/wisPointUpdate":{"post":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"userId","in":"formData","description":"userId is required","required":true,"type":"integer","value":""},{"name":"point","in":"formData","description":"","type":"integer","value":"","required":true},{"name":"reason","in":"formData","description":"","type":"string","value":"","required":true},{"name":"isType","in":"formData","description":"1 increase and 2 decrease ","type":"integer","required":false,"value":""}],"responses":{}}},"/api/v1/admin/user/wisPointHistory":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"userId","in":"query","description":"userId is required","required":true,"type":"integer","value":""},{"name":"limit","in":"query","description":"limit is optional","type":"integer","required":false,"value":""},{"name":"skip","in":"query","description":"skip is optional","type":"integer","required":false,"value":""}],"responses":{}}},"/api/v1/admin/user/invitationHistroy":{"get":{"x-swagger-router-controller":"middleware-name1","tags":["AdminUser"],"description":"","security":[{"Bearer":[]}],"parameters":[{"name":"userId","in":"query","description":"userId is required","required":false,"type":"integer","value":""},{"name":"search","in":"query","description":"","required":false,"type":"string","value":""},{"name":"limit","in":"query","description":"limit is optional","type":"integer","required":false,"value":""},{"name":"skip","in":"query","description":"skip is optional","type":"integer","required":false,"value":""}],"responses":{}}}},"definitions":{"subTopicName":{"type":"array","properties":{"type":"string"}},"achievementDetails":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"}}}},"id":{"type":"array","properties":{"type":"integer"}}}},"customOptions":{}}