Main Koha release repository https://koha-community.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

66 lines
2.1 KiB

{
"/oauth/token": {
"post": {
"x-mojo-to": "OAuth#token",
"operationId": "tokenOAuth",
"tags": ["oauth"],
"summary": "Get access token",
"produces": [
"application/json"
],
"parameters": [
{
"name": "grant_type",
"in": "formData",
"description": "grant type (client_credentials)",
"required": true,
"type": "string"
},
{
"name": "client_id",
"in": "formData",
"description": "client id",
"type": "string"
},
{
"name": "client_secret",
"in": "formData",
"description": "client secret",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"properties": {
"access_token": {
"type": "string"
},
"token_type": {
"type": "string"
},
"expires_in": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "../definitions.json#/error"
}
},
"403": {
"description": "Access forbidden",
"schema": {
"$ref": "../definitions.json#/error"
}
}
}
}
}
}