{"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/login":{"post":{"x-swagger-router-controller":"middleware-name1","operationId":"login","tags":["Admin"],"description":"Admin Login...","parameters":[{"name":"countryCode","in":"formData","description":"countryCode is required","required":true,"type":"string","value":""},{"name":"phoneNumber","in":"formData","description":"phoneNumber is required","required":true,"type":"string","value":""}],"responses":{}}},"/api/v1/admin/resendOtp":{"put":{"x-swagger-router-controller":"middleware-name1","operationId":"resendOtp","tags":["Admin"],"description":"Resend OTP...","security":[{"Bearer":[]}],"parameters":[],"responses":{}}},"/api/v1/admin/verifyOtp":{"post":{"x-swagger-router-controller":"middleware-name1","operationId":"verifyOtp","tags":["Admin"],"description":"Verification of OTP","security":[{"Bearer":[]}],"parameters":[{"name":"otp","in":"formData","description":"otp is required","required":true,"type":"string","value":""}],"responses":{}}},"/api/v1/admin/changeNumber":{"post":{"x-swagger-router-controller":"middleware-name1","operationId":"changeNumber","tags":["Admin"],"description":"Change Number","security":[{"Bearer":[]}],"parameters":[{"name":"countryCode1","in":"formData","description":"countryCode1 is required","required":true,"type":"string","value":""},{"name":"phoneNumber","in":"formData","description":"phoneNumber is required","required":true,"type":"string","value":""},{"name":"countryCode2","in":"formData","description":"countryCode2 is required","required":true,"type":"string","value":""},{"name":"newNumber","in":"formData","description":"newNumber is required","required":true,"type":"string","value":""}],"responses":{}}},"/api/v1/admin/addAdmin":{"post":{"x-swagger-router-controller":"middleware-name1","operationId":"addAdmin","tags":["Admin"],"description":"Add SuperAdmins or SubAdmins","security":[{"Bearer":[]}],"parameters":[{"name":"countryCode","in":"formData","description":"countryCode is required","required":true,"type":"string","value":""},{"name":"phoneNumber","in":"formData","description":"phoneNumber is required","required":true,"type":"string","value":""},{"name":"firstName","in":"formData","description":"firstName is required","required":true,"type":"string","value":""},{"name":"lastName","in":"formData","description":"lastName is required","required":true,"type":"string","value":""},{"name":"accessPermissions","in":"formData","description":"accessPermissions is required","required":true,"schema":{"$ref":"#/definitions/addPermissions"}}],"responses":{}}},"/api/v1/admin/admins":{"get":{"x-swagger-router-controller":"middleware-name1","operationId":"admins","tags":["Admin"],"description":"List All SuperAdmins and SubAmdins","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":"integer","value":""},{"name":"isActive","in":"query","description":"","required":false,"type":"integer","value":""},{"name":"accessPermissions","in":"query","description":"accessPermissions...","required":false,"schema":{"$ref":"#/definitions/getPermissions"}}],"responses":{}},"put":{"x-swagger-router-controller":"middleware-name1","operationId":"adminsUpdate","tags":["Admin"],"description":"Update Admin Details","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"formData","description":"","type":"integer","required":true},{"name":"firstName","in":"formData","description":"","type":"string","required":false},{"name":"lastName","in":"formData","description":"","type":"string","required":false},{"name":"countryCode","in":"formData","description":"","type":"string","required":false},{"name":"phoneNumber","in":"formData","description":"","type":"string","required":false},{"name":"accessPermissions","in":"formData","description":"accessPermissions...","required":false,"schema":{"$ref":"#/definitions/addPermissions"}}],"responses":{}},"delete":{"x-swagger-router-controller":"middleware-name1","operationId":"adminsDelete","tags":["Admin"],"description":"Delete Admin","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"formData","description":"","type":"integer","required":true}],"responses":{}}},"/api/v1/admin/admins/profile":{"get":{"x-swagger-router-controller":"middleware-name1","operationId":"adminsProfile","tags":["Admin"],"description":"Get admin profile","security":[{"Bearer":[]}],"parameters":[],"responses":{}}},"/api/v1/admin/edit_profile":{"put":{"x-swagger-router-controller":"middleware-name1","operationId":"adminsUpdateProfile","tags":["Admin"],"description":"Update Profile of admin","security":[{"Bearer":[]}],"parameters":[{"name":"firstName","in":"formData","description":"","type":"string","required":false},{"name":"lastName","in":"formData","description":"","type":"string","required":false},{"name":"image","in":"formData","description":"","type":"file","required":false}],"responses":{}}},"/api/v1/admin/admins/{id}":{"get":{"x-swagger-router-controller":"middleware-name1","operationId":"adminsId","tags":["Admin"],"description":"Get admin details by id","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"path","description":"","type":"integer","required":true}],"responses":{}}},"/api/v1/admin/downloadAdmin":{"get":{"x-swagger-router-controller":"middleware-name1","operationId":"adminsDownload","tags":["Admin"],"description":"Download Admin","security":[{"Bearer":[]}],"parameters":[{"name":"from","in":"query","description":"","type":"string","required":false,"value":""},{"name":"to","in":"query","description":"","type":"string","required":false,"value":""}],"responses":{}}},"/api/v1/admin/admins/block":{"put":{"x-swagger-router-controller":"middleware-name1","operationId":"adminsBlock","tags":["Admin"],"description":"Block Admin","security":[{"Bearer":[]}],"parameters":[{"name":"id","in":"formData","description":"","type":"integer","required":true},{"name":"isBlocked","in":"formData","description":"","enum":[0,1],"type":"integer","required":true}],"responses":{}}},"/api/v1/admin/logout":{"put":{"x-swagger-router-controller":"middleware-name1","operationId":"adminsLogout","tags":["Admin"],"description":"Logout Admin..","security":[{"Bearer":[]}],"parameters":[],"responses":{}}},"/api/v1/admin/getInvitationWIT":{"get":{"x-swagger-router-controller":"middleware-name1","operationId":"invitationWIT","tags":["Admin"],"description":"admin setting invitation wit..","security":[{"Bearer":[]}],"parameters":[],"responses":{}}},"/api/v1/admin/invitationWIT":{"put":{"x-swagger-router-controller":"middleware-name1","operationId":"invitationWIT","tags":["Admin"],"description":"admin setting invitation wit..","security":[{"Bearer":[]}],"parameters":[{"name":"invitationWIT","in":"formData","description":"","type":"string","required":true}],"responses":{}}},"/api/v1/admin/versionslist":{"get":{"x-swagger-router-controller":"middleware-name1","operationId":"versions","tags":["Admin"],"description":"versions","security":[{"Bearer":[]}],"parameters":[],"responses":{}}},"/api/v1/admin/versions":{"post":{"x-swagger-router-controller":"middleware-name1","operationId":"versions","tags":["Admin"],"description":"versions","security":[{"Bearer":[]}],"parameters":[{"name":"verisonType","in":"formData","description":"Get All the Versions 1 Is Andirod 2 Is IOS","required":true,"type":"number","value":""},{"name":"version","in":"formData","description":"","required":true,"type":"string","value":""}],"responses":{}}},"/api/v1/admin/updateVersions":{"put":{"x-swagger-router-controller":"middleware-name1","operationId":"updateVersions","tags":["Admin"],"description":"admin setting versions","security":[{"Bearer":[]}],"parameters":[{"name":"isType","in":"formData","description":"Get All the Versions 1 Is Andirod 2 Is IOS","required":true,"type":"number","value":""},{"name":"version","in":"formData","description":"","required":true,"type":"string","value":""},{"name":"isForceUpdate","in":"formData","description":"0 is not 1 is force","required":false,"type":"number","value":""}],"responses":{}}}},"definitions":{"addPermissions":{"type":"object","properties":{"dashboard":{"type":"integer","defaultValue":0},"adminRoleManagement":{"type":"integer","defaultValue":0},"topicManagement":{"type":"integer","defaultValue":0},"pollManagement":{"type":"integer","defaultValue":0},"groupManagement":{"type":"integer","defaultValue":0},"userManagement":{"type":"integer","defaultValue":0},"contentManagement":{"type":"integer","defaultValue":0},"newsManagement":{"type":"integer","defaultValue":0},"notificationManagement":{"type":"integer","defaultValue":0},"supportManagement":{"type":"integer","defaultValue":0},"taskManagement":{"type":"integer","defaultValue":0},"achievementManagement":{"type":"integer","defaultValue":0}},"xml":{"name":"addPermissions"}},"getPermissions":{"type":"object","properties":{"dashboard":{"type":"boolean"},"adminRoleManagement":{"type":"boolean"},"topicManagement":{"type":"boolean"},"pollManagement":{"type":"boolean"},"groupManagement":{"type":"boolean"},"userManagement":{"type":"boolean"},"contentManagement":{"type":"boolean"},"newsManagement":{"type":"boolean"},"notificationManagement":{"type":"boolean"},"supportManagement":{"type":"boolean"},"taskManagement":{"type":"boolean"},"achievementManagement":{"type":"boolean"}},"xml":{"name":"getPermissions"}}}},"customOptions":{}}