
{
    "swagger":"2.0",
    "info":{
        "title":"REST API for Oracle Identity Governance Token Service",
        "description":"<p>The Token service API lets your acquire a JWT token using which user can securely access REST end points.</p>",
        "version":"2017.01.17",
        "x-summary":"The Token service API lets your acquire a JWT token using which user can securely access REST end points."
    },
    "schemes":[
        "https"
    ],
    "securityDefinitions":{
        "basicAuth":{
            "type":"basic"
        }
    },
    "paths":{
        "/tokens":{
            "post":{
                "security":[
                    {
                        "basicAuth":[
                        ]
                    }
                ],
                "summary":"Fetch a JWT token for authenticated user.",
                "description":"Returns a JWT token for self.",
                "consumes":[
                    "application/json"
                ],
                "produces":[
                    "application/json"
                ],
                "responses":{
                    "200":{
                        "description":"OK",
                        "schema":{
                            "$ref":"#/definitions/token-response"
                        }
                    }
                },
                "tags":[
                    "Token Service"
                ],
                "x-internal-id":"tokens-post"
            },
            "put":{
                "security":[
                    {
                        "basicAuth":[
                        ]
                    }
                ],
                "summary":"Refresh an existing JWT Token for already authenticated user.",
                "description":"Returns a new JWT token for self.",
                "consumes":[
                    "application/json"
                ],
                "produces":[
                    "application/json"
                ],
                "responses":{
                    "200":{
                        "description":"OK",
                        "schema":{
                            "$ref":"#/definitions/token-response"
                        }
                    }
                },
                "tags":[
                    "Token Service"
                ],
                "x-internal-id":"tokens-put"
            }
        }
    },
    "definitions":{
        "token-response":{
            "properties":{
                "tokenType":{
                    "type":"string",
                    "description":"Type of token. Its value is Bearer."
                },
                "accessToken":{
                    "type":"string",
                    "description":"JWT token string."
                },
                "expiresIn":{
                    "type":"string",
                    "description":"Time after which the token gets expired."
                }
            }
        }
    },
    "tags":[
        {
            "name":"Token Service",
            "description":"It provides user REST end points to acquire and refresh JWT Token.",
            "x-priority":60
        }
    ]
}