{"openapi":"3.0.0","servers":[{"description":"dev server","url":"https://dev.lk.flexreality.pro/one-c"},{"description":"dev server","url":"https://dev.lk.flexreality.pro/"},{"description":"local host","url":"https://3c36-95-158-42-48.ngrok.io/"},{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/vladimirm1985/1c-API/1.0.0"}],"info":{"version":"1.0.0","title":"Admin pannel REST","description":"For testing"},"paths":{"/project":{"post":{"summary":"Get projects","requestBody":{"$ref":"#/components/requestBodies/Auth"},"responses":{"200":{"$ref":"#/components/responses/GetProjects"},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}},"tags":["1c"]}},"/epic":{"post":{"summary":"Get epics by project id","requestBody":{"$ref":"#/components/requestBodies/GetEpics"},"responses":{"200":{"$ref":"#/components/responses/GetEpics"},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}},"tags":["1c"]}},"/task":{"post":{"summary":"Get tasks by epicKey","requestBody":{"$ref":"#/components/requestBodies/GetTasks"},"responses":{"200":{"$ref":"#/components/responses/GetTasks"},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}},"tags":["1c"]}},"/task/{taskId}":{"post":{"summary":"Get task by id","parameters":[{"$ref":"#/components/parameters/TaskId"}],"requestBody":{"$ref":"#/components/requestBodies/Auth"},"responses":{"200":{"$ref":"#/components/responses/GetTask"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}},"tags":["1c"]}},"/application/current-version":{"get":{"summary":"Get current application version","parameters":[{"in":"query","name":"appId","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"os","schema":{"type":"string"},"description":"Only iOS, android are available"}],"responses":{"200":{"description":"Logged user info","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string"}}}}}},"500":{"$ref":"#/components/responses/ServerError"}},"tags":["Application"]}},"/application/login":{"post":{"summary":"Application login","requestBody":{"$ref":"#/components/requestBodies/AppLogin"},"responses":{"200":{"$ref":"#/components/responses/SuccessLoginApp"},"401":{"$ref":"#/components/responses/UnauthorizedApp"},"403":{"$ref":"#/components/responses/ForbiddenApp"},"500":{"$ref":"#/components/responses/ServerError"}},"tags":["Application"]}},"/application/logout":{"post":{"summary":"Application logout","security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/SuccessLogoutApp"},"401":{"$ref":"#/components/responses/UnauthorizedApp"},"403":{"$ref":"#/components/responses/ForbiddenApp"},"500":{"$ref":"#/components/responses/ServerError"}},"tags":["Application"]}},"/application/user-info":{"get":{"summary":"Get logged user info","security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/UserInfotApp"},"401":{"$ref":"#/components/responses/UnauthorizedApp"},"403":{"$ref":"#/components/responses/ForbiddenApp"},"500":{"$ref":"#/components/responses/ServerError"}},"tags":["Application"]}},"/application/main":{"post":{"summary":"Get application main pages","requestBody":{"$ref":"#/components/requestBodies/GetMainPages"},"responses":{"200":{"$ref":"#/components/responses/MainPageApp"},"500":{"$ref":"#/components/responses/ServerError"}},"tags":["Application"]}},"/application/main-secret":{"post":{"summary":"Get application secret main pages","security":[{"bearerAuth":[]}],"requestBody":{"$ref":"#/components/requestBodies/GetSecretMainPages"},"responses":{"200":{"$ref":"#/components/responses/MainPageApp"},"401":{"$ref":"#/components/responses/UnauthorizedApp"},"403":{"$ref":"#/components/responses/ForbiddenApp"},"500":{"$ref":"#/components/responses/ServerError"}},"tags":["Application"]}},"/application/model":{"get":{"summary":"Get application main pages","parameters":[{"in":"query","name":"mainPageId","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"lang","schema":{"type":"string"},"description":"Only EN, RU, UKR are available"}],"responses":{"200":{"$ref":"#/components/responses/AppModel"},"500":{"$ref":"#/components/responses/ServerError"}},"tags":["Application"]}},"/application/notification":{"get":{"summary":"Get application notifications","security":[{"bearerAuth":[]}],"parameters":[{"in":"query","name":"appId","schema":{"type":"string","format":"uuid"},"description":"Application id"},{"in":"query","name":"limit","schema":{"type":"string"},"description":"Not required positive integer"},{"in":"query","name":"lang","schema":{"type":"string"},"description":"Only EN, RU, UKR are available"}],"responses":{"200":{"$ref":"#/components/responses/AppNotifications"},"500":{"$ref":"#/components/responses/ServerError"}},"tags":["Application"]}}},"components":{"schemas":{"Project":{"type":"object","properties":{"projectId":{"type":"string","format":"uuid"},"name":{"type":"string"}}},"Epic":{"type":"object","properties":{"epicKey":{"type":"string"},"name":{"type":"string"}}},"TaskSimple":{"type":"object","properties":{"taskId":{"type":"string","format":"uuid"},"key":{"type":"string"},"name":{"type":"string"},"assigneeName":{"type":"string","nullable":true}}},"Task":{"type":"object","properties":{"taskId":{"type":"string","format":"uuid"},"key":{"type":"string"},"name":{"type":"string"},"assigneeName":{"type":"string","nullable":true},"timeEstimate":{"type":"number","nullable":true},"timeSpent":{"type":"number","nullable":true},"assigneeRate":{"type":"number","nullable":true},"startDateEstimate":{"type":"string","nullable":true},"startDateFact":{"type":"string","nullable":true},"finishDateEstimate":{"type":"string","nullable":true},"finishDateFact":{"type":"string","nullable":true}}},"AppUser":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"photo":{"type":"string","nullable":true}}},"AppMain":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"photo":{"type":"string","nullable":true},"background1":{"type":"string","nullable":true},"background2":{"type":"string","nullable":true},"isMap":{"type":"boolean"},"display":{"type":"boolean"}}},"AppModel":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"photo":{"type":"string","nullable":true},"lat":{"type":"string","nullable":true},"long":{"type":"string","nullable":true},"address":{"type":"string","nullable":true},"mapMarkerPhoto":{"type":"string","nullable":true},"bundleType":{"type":"string","enum":["BUNDLE","BUNDLE_LINK","PHOTO"]},"bundlePhoto":{"type":"string","nullable":true},"bundleLink":{"type":"string","nullable":true},"iosBundle":{"type":"string","nullable":true},"androidBundle":{"type":"string","nullable":true},"isMarker":{"type":"boolean"},"markerPhoto":{"type":"string","nullable":true}}},"AppNotification":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"photo":{"type":"string","nullable":true}}},"GetAppPagesBody":{"type":"object","properties":{"pagesQRIds":{"type":"array","items":{"type":"string","example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"}},"appId":{"type":"string","format":"uuid"},"city":{"type":"string","example":"Kharkiv","nullable":true}}},"GetAppSecretPagesBody":{"type":"object","properties":{"appId":{"type":"string","format":"uuid"},"city":{"type":"string","example":"Kharkiv","nullable":true}}},"Auth":{"type":"object","properties":{"email":{"type":"string","example":"super_admin@superadmin.com"},"password":{"type":"string","example":"Qwer1234"}}},"GetEpicBody":{"type":"object","properties":{"email":{"type":"string","example":"super_admin@superadmin.com"},"password":{"type":"string","example":"Qwer1234"},"projectId":{"type":"string","format":"uuid"}}},"GetTasksBody":{"type":"object","properties":{"email":{"type":"string","example":"super_admin@superadmin.com"},"password":{"type":"string","example":"Qwer1234"},"epicKey":{"type":"string","example":"BOSTON-3"}}}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"GetProjects":{"description":"Get all projects","content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"$ref":"#/components/schemas/Project"}}}}}}},"GetEpics":{"description":"Get epics","content":{"application/json":{"schema":{"type":"object","properties":{"epics":{"type":"array","items":{"$ref":"#/components/schemas/Epic"}}}}}}},"GetTasks":{"description":"Get tasks","content":{"application/json":{"schema":{"type":"object","properties":{"tasks":{"type":"array","items":{"$ref":"#/components/schemas/TaskSimple"}}}}}}},"GetTask":{"description":"Get task","content":{"application/json":{"schema":{"type":"object","properties":{"task":{"$ref":"#/components/schemas/Task"}}}}}},"Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Auth failed"}}}}}},"UnauthorizedApp":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Unauthorized + explanation"}}}}}},"ForbiddenApp":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Forbidden"}}}}}},"SuccessLoginApp":{"description":"Success Login","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJlMDIxMmZlNi03YzgyLTQwNjgtOGRlZi1kYmZjMDI4NzQ0NTUiLCJpYXQiOjE2MzU0MTM1NTIsImV4cCI6MTYzODAwNTU1Mn0.DA7GwtxYkJ_JlXK7DUU8J6F0NNpM8QlYhN7g6ZGsjMc"}}}}}},"SuccessLogoutApp":{"description":"Success Logout","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"ok"}}}}}},"UserInfotApp":{"description":"Logged user info","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/AppUser"}}}}}},"MainPageApp":{"description":"Logged user info","content":{"application/json":{"schema":{"type":"object","properties":{"appMainPages":{"type":"array","items":{"$ref":"#/components/schemas/AppMain"}}}}}}},"AppModel":{"description":"Logged user info","content":{"application/json":{"schema":{"type":"object","properties":{"models":{"type":"array","items":{"$ref":"#/components/schemas/AppModel"}}}}}}},"AppNotifications":{"description":"Logged user info","content":{"application/json":{"schema":{"type":"object","properties":{"notifications":{"type":"array","items":{"$ref":"#/components/schemas/AppNotification"}}}}}}},"ServerError":{"description":"Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Something went wrong"}}}}}},"NotFound":{"description":"Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Task not found"}}}}}}},"parameters":{"TaskId":{"name":"taskId","in":"path","description":"Task id","required":true,"schema":{"type":"string","format":"uuid"}}},"requestBodies":{"Auth":{"description":"Get Projects body","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Auth"}}}},"GetEpics":{"description":"Get Epics body","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEpicBody"}}}},"GetTasks":{"description":"Get Epics body","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTasksBody"}}}},"AppLogin":{"description":"Application login body","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Auth"}}}},"GetMainPages":{"description":"Get application main pages","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAppPagesBody"}}}},"GetSecretMainPages":{"description":"Get application main pages","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAppSecretPagesBody"}}}}}}}