{"swagger":"2.0","info":{"description":"Api Documentation","version":"1.0","title":"Api Documentation","termsOfService":"urn:tos","contact":{},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}},"host":"localhost:8489","basePath":"/","tags":[{"name":"auth-controller","description":"Auth Controller"},{"name":"auth-integration-test-support-controller","description":"Auth Integration Test Support Controller"}],"paths":{"/details":{"get":{"tags":["auth-controller"],"summary":"Validate service's token","operationId":"authCheckUsingGET","produces":["*/*"],"parameters":[{"name":"Authorization","in":"header","description":"Authorization","required":true,"type":"string"}],"responses":{"200":{"description":"Token valid. Returns service name","schema":{"type":"string"}},"401":{"description":"Token invalid."}},"deprecated":false}},"/lease":{"post":{"tags":["auth-controller"],"summary":"Sign in, lease auth token","operationId":"leaseUsingPOST","consumes":["application/json"],"produces":["*/*"],"parameters":[{"in":"body","name":"signIn","description":"signIn","required":true,"schema":{"$ref":"#/definitions/SignIn"}}],"responses":{"200":{"description":"JWT token","schema":{"type":"string"}},"401":{"description":"Unauthorised. Returns error message."}},"deprecated":false}},"/testing-support/lease":{"post":{"tags":["auth-integration-test-support-controller"],"summary":"Generate a JWT token for arbitrary microservice","operationId":"leaseUsingPOST_1","consumes":["application/json"],"produces":["*/*"],"parameters":[{"in":"body","name":"signIn","description":"signIn","required":true,"schema":{"$ref":"#/definitions/SignInWithoutOtp"}}],"responses":{"200":{"description":"JWT token","schema":{"type":"string"}}},"deprecated":false}}},"definitions":{"SignIn":{"type":"object","properties":{"microservice":{"type":"string","description":"Name of the microservice"},"oneTimePassword":{"type":"string","description":"Google Authenticator OTP"}},"title":"SignIn"},"SignInWithoutOtp":{"type":"object","properties":{"microservice":{"type":"string","description":"Name of the service"}},"title":"SignInWithoutOtp"}}}
