{"swagger":"2.0","info":{"description":"This is a sample server Petstore server.\n\n[Learn about Swagger](http://swagger.io) or join the IRC channel `#swagger` on irc.freenode.net.\n\nFor this sample, you can use the api key `special-key` to test the authorization filters\n","version":"1.0.0","title":"API Support 123CS","termsOfService":"http://helloreverb.com/terms/","contact":{"name":"apiteam@swagger.io"},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"paths":{"/register/sig/{sig}":{"post":{"tags":["register"],"summary":"Add a new pet to the store","description":"","operationId":"register","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"body","description":"Thông tin đăng ký dùng thử","required":true,"schema":{"$ref":"#/definitions/Account"}},{"in":"path","name":"sig","description":"HMAC-SHA512(Key,fullname+email+phone+password+timespant)","required":true,"type":"string"}],"responses":{"200":{"description":"Request success","schema":{"$ref":"#/definitions/SC_OK_Register"},"examples":{"application/json":[{"code":1000,"data":{"_id":"58f0b9b035ab1100a7a871da"},"message":"SC_OK"},{"code":4001,"message":"Your request is being in the queue to be served, please wait a moment"}]}}}}},"/domain/checkexists/{domain_name}/{client}":{"get":{"tags":["domain"],"summary":"Add a new pet to the store","description":"API Kiểm tra tenant domain đã được đăng ký hay chưa","operationId":"checkTenantExists","security":[{"jsonWebToken":[]}],"parameters":[{"in":"path","name":"domain_name","description":"Domain của tenant","required":true,"type":"string"},{"in":"path","name":"client","description":"Nguồn gọi (123cs | sso | ios | myplus)","required":true,"type":"string"}],"responses":{"200":{"description":"Check Tenants success","schema":{"$ref":"#/definitions/SC_OK"},"examples":{"Respone 1":{"code":1000,"data":{"_id":"58214eb8b7c68c55130b8b47","name":"VNG","exists":true,"lock":false},"message":"SC_OK"},"Respone 2":{"code":5002,"message":"Tenants Not Exists"},"Respone 3":{"code":5003,"message":"Not support client"},"Respone 4":{"code":"11006","message":"Missing or invalid Authorization header."}}}}}},"/domain/lock":{"post":{"tags":["lock"],"summary":"Add a new pet to the store","description":"","operationId":"lock","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"domain_name","description":"Thông tin đăng ký dùng thử","required":true}],"responses":{"200":{"description":"Request success","schema":{"$ref":"#/definitions/SC_OK_Register"},"examples":{"application/json":[{"code":1000,"data":{"_id":"58f0b9b035ab1100a7a871da"},"message":"SC_OK"},{"code":4001,"message":"Your request is being in the queue to be served, please wait a moment"}]}}}}}},"definitions":{"SC_OK":{"type":"object","properties":{"code":{"type":"integer"},"data":{"$ref":"#/definitions/data_struct_checktenantexists"},"message":{"type":"string"}}},"SC_OK_Register":{"type":"object","properties":{"code":{"type":"integer"},"data":{"$ref":"#/definitions/data_struct_register"},"message":{"type":"string"}}},"data_struct_checktenantexists":{"type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"exsits":{"type":"boolean"},"lock":{"type":"boolean"}}},"data_struct_register":{"type":"object","properties":{"_id":{"type":"string"}}},"Account":{"type":"object","properties":{"fullname":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"password":{"type":"string"},"timespan":{"type":"string"},"type":{"type":"string"}}}},"host":"virtserver.swaggerhub.com","basePath":"/dvdieu/123/1.0.0","schemes":["https","http"],"securityDefinitions":{"jsonWebToken":{"type":"apiKey","name":"Authorization","in":"header"}}}