{"openapi":"3.0.0","info":{"title":"admin zenta api","contact":{"name":"API Support","url":"http://localhost:8090/api/admin","email":"iron.hoang@nexusfrontier.tech"},"description":"admin-api-zenta","version":"1.0.0"},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/Huynt-dev/Zenta-admin/1.0.0"},{"url":"http://localhost:8090/api/admin"}],"paths":{"/signin":{"post":{"description":"admin signin","operationId":"adminSignin","requestBody":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"email"},"password":{"type":"string","description":"password"}}}}}},"tags":["authentication"],"responses":{"201":{"description":"signin successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessToken"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}},"/me":{"get":{"description":"get me","operationId":"getMe","tags":["authentication"],"responses":{"200":{"description":"get my information successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessToken"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"error message"}}}}}}}}},"/projects/export":{"post":{"description":"export projects","operationId":"exportProjects","tags":["Project"],"responses":{"200":{"description":"excel file","content":{"application/vnd":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}},"/projects":{"get":{"description":"get list projects","operationId":"listProjects","tags":["Project"],"responses":{"200":{"description":"Successfully get projects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Projects"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}},"/projects/{id}":{"get":{"description":"get project detail","operationId":"projectDetail","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"project id"}],"tags":["Project"],"responses":{"200":{"description":"Successfully show project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}},"/dashboard":{"get":{"description":"get summary statistic","operationId":"getStatistic","tags":["dasboard"],"responses":{"200":{"description":"Successfully get summary statistic","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Statistic"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}},"/signout":{"post":{"description":"Sign out.","operationId":"userSignOut","tags":["authentication"],"responses":{"200":{"description":"sign out successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}},"/token/refresh":{"post":{"description":"Refresh Token","operationId":"userTokenRefresh","requestBody":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"refresh_token":{"type":"string","description":"refresh_token"}}}}}},"tags":["authentication"],"responses":{"200":{"description":"receive new token successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessToken"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}}},"components":{"schemas":{"List":{"description":"Basic structure for Set of Resources with pagination","type":"object","required":["hasNext","offset","limit"],"properties":{"hasNext":{"type":"boolean"},"offset":{"type":"integer"},"limit":{"type":"integer"}}},"Parameter":{"description":"Param info","type":"object","required":["name"],"properties":{"name":{"description":"param name","type":"string"},"message":{"description":"message for the param","type":"string"}}},"Status":{"description":"This structure is only for indicating \"success/error\". Common structure for Error based on RFC7807 ( https://tools.ietf.org/html/rfc7807 )","type":"object","required":["isSuccess","type","title","status","errorCode","detail"],"properties":{"isSuccess":{"description":"if it works fine","type":"boolean"},"type":{"description":"Ref RFC7807 spec. A URI reference [RFC3986] that identifies the problem type","type":"string"},"title":{"description":"Ref RFC7807 spec. A short, human-readable summary of the problem type.","type":"string"},"status":{"description":"The HTTP status code generated by the origin server for this occurrence of the problem.","type":"integer"},"errorCode":{"description":"4 digits error code defined in the service. ( Refer error code list )","type":"integer"},"detail":{"description":"A human-readable explanation specific to this occurrence of the problem. Don't use this text to analyze error content systematially. Because this text can be changed to describe better.","type":"string"},"invalidParams":{"description":"If something wrong with params, this params returns an array of invalid params.","type":"array","items":{"$ref":"#/components/schemas/Parameter"}}}},"Image":{"type":"object","properties":{"id":{"type":"integer","description":"Unique identifier representing a specific Advertiser"},"title":{"type":"string","description":"Name of image upload."},"url":{"type":"string","description":"Url of image."},"mediaType":{"type":"string","description":"Type image/png."},"fileSize":{"type":"integer","description":"size of image."},"width":{"type":"integer","description":"image width."},"height":{"type":"integer","description":"image height."}}},"FloorPlanInput":{"description":"FloorPlanInput","type":"object","properties":{"id":{"type":"string","description":"string"},"points":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/Coordinates"}}}}},"links":{"description":"file public by id","type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"link":{"type":"string"}}}},"Coordinates":{"description":"Coordinates","type":"object","properties":{"name":{"type":"string","description":"string"},"points":{"type":"array","items":{"$ref":"#/components/schemas/Points"},"description":"points"}}},"Points":{"description":"Coordinate Points","type":"object","properties":{"x":{"type":"number","description":"x"},"y":{"type":"number","description":"y"}}},"File":{"type":"object","properties":{"id":{"type":"integer","description":"Unique identifier representing a specific Advertiser"},"title":{"type":"string","description":"Name of image upload."},"url":{"type":"string","description":"Url of image."},"mediaType":{"type":"string","description":"Type image/png."},"fileSize":{"type":"integer","description":"size of image."},"width":{"type":"integer","description":"image width."},"height":{"type":"integer","description":"image height."}}},"Projects":{"allOf":[{"$ref":"#/components/schemas/List"},{"required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Project"}}}}]},"Project":{"description":"Project","type":"object","properties":{"id":{"type":"integer","description":"id"},"key":{"type":"string","description":"key"},"name":{"type":"string","description":"project name"},"usage":{"type":"string","description":"use"},"status":{"type":"string","description":"status"},"rating":{"type":"integer","description":"rating"},"passcode":{"type":"string","description":"passcode"},"buildingType":{"type":"string","description":"buildingType"},"filePageNo":{"type":"string","description":"filePageNo"},"file":{"$ref":"#/components/schemas/File"},"qualityGuaranteeFloorplanCount":{"type":"number","description":"qualityGuaranteeFloorplanCount"},"qualityGuaranteeFloorplanRate":{"type":"number","description":"qualityGuaranteeFloorplanRate"},"createdAt":{"type":"string","description":"createdAt"},"updatedAt":{"type":"string","description":"updatedAt"}}},"FloorplanPage":{"description":"floor plan page","type":"object","properties":{"id":{"type":"integer","description":"id"},"pageNo":{"type":"integer","description":"page_no"},"imageFile":{"$ref":"#/components/schemas/Image"},"createdAt":{"type":"string","description":"createdAt"},"updatedAt":{"type":"string","description":"updatedAt"}}},"FloorplanPages":{"allOf":[{"$ref":"#/components/schemas/List"},{"required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/FloorplanPage"}}}}]},"FloorPlan":{"description":"floor plan","type":"object","properties":{"id":{"type":"integer","description":"id"},"name":{"type":"string","description":"floor plan name"},"floorplanPageNo":{"type":"string","description":"floorplanPageNo"},"file":{"$ref":"#/components/schemas/File"},"floorplanArea":{"type":"string","description":"floor plan name"},"verticalBaseLineArea":{"type":"string","description":"floorverticalBaseLineArea"},"horizontalBaseLineArea":{"type":"string","description":"horizontalBaseLineArea"},"predictFile":{"$ref":"#/components/schemas/File"},"predictData":{"type":"string","description":"predictData"}}},"AccessToken":{"description":"OAuth2 Responce","type":"object","properties":{"accessToken":{"type":"string","description":"access token"},"tokenType":{"type":"string","description":"beader"},"rememberToken":{"type":"string","description":"remember token"},"expiresIn":{"type":"integer","description":"when accesstoken expire"}}},"User":{"type":"object","properties":{"id":{"type":"integer","description":"Unique identifier representing a specific campaign"},"name":{"type":"string","description":"name of user."},"profileImage":{"$ref":"#/components/schemas/Image"}}},"Users":{"allOf":[{"$ref":"#/components/schemas/List"},{"required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/User"}}}}]},"Me":{"allOf":[{"$ref":"#/components/schemas/User"},{"required":["email"],"properties":{"email":{"description":"Email Address of the user","type":"string"}}}]},"Statistic":{"type":"object","properties":{"projectCount":{"type":"integer","description":"Project count","example":1},"floorplanCount":{"type":"integer","description":"Floorplan count","example":10},"qualityGuaranteeFloorplanCount":{"type":"integer","description":"Guarantee rate floorplan count","example":5},"qualityGuaranteeFloorplanRate":{"type":"integer","description":"Guarantee rate floorplan rate","example":50}}}}}}