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.
368 lines
8.0 KiB
368 lines
8.0 KiB
3 years ago
|
{
|
||
2 years ago
|
"openapi": "3.1.0",
|
||
3 years ago
|
"info": {
|
||
2 years ago
|
"title": "provisioning_api",
|
||
2 years ago
|
"version": "1.17.0",
|
||
3 years ago
|
"description": "This application enables a set of APIs that external systems can use to manage users, groups and apps.",
|
||
|
"license": {
|
||
2 years ago
|
"name": "agpl",
|
||
2 years ago
|
"identifier": "AGPL-3.0"
|
||
3 years ago
|
}
|
||
|
},
|
||
|
"servers": [
|
||
|
{
|
||
2 years ago
|
"url": "https://{hostname}:{port}",
|
||
3 years ago
|
"variables": {
|
||
|
"hostname": {
|
||
|
"default": "localhost"
|
||
|
},
|
||
|
"port": {
|
||
|
"default": "8080"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"security": [
|
||
|
{
|
||
|
"basic_auth": []
|
||
|
}
|
||
|
],
|
||
|
"components": {
|
||
|
"schemas": {
|
||
|
"OCSMeta": {
|
||
2 years ago
|
"type": "object",
|
||
2 years ago
|
"required": [
|
||
|
"status",
|
||
2 years ago
|
"statuscode"
|
||
2 years ago
|
],
|
||
2 years ago
|
"properties": {
|
||
|
"status": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"statuscode": {
|
||
|
"type": "integer"
|
||
|
},
|
||
|
"message": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"totalitems": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"itemsperpage": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
}
|
||
3 years ago
|
},
|
||
2 years ago
|
"EmptyOCS": {
|
||
|
"type": "object",
|
||
|
"required": [
|
||
|
"ocs"
|
||
|
],
|
||
|
"properties": {
|
||
|
"ocs": {
|
||
|
"type": "object",
|
||
|
"required": [
|
||
|
"meta",
|
||
|
"data"
|
||
|
],
|
||
|
"properties": {
|
||
|
"meta": {
|
||
|
"$ref": "#/components/schemas/OCSMeta"
|
||
|
},
|
||
|
"data": {
|
||
|
"type": "array"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"User": {
|
||
3 years ago
|
"type": "object",
|
||
2 years ago
|
"required": [
|
||
|
"ocs"
|
||
|
],
|
||
3 years ago
|
"properties": {
|
||
|
"ocs": {
|
||
|
"type": "object",
|
||
2 years ago
|
"required": [
|
||
|
"meta",
|
||
|
"data"
|
||
|
],
|
||
3 years ago
|
"properties": {
|
||
|
"meta": {
|
||
|
"$ref": "#/components/schemas/OCSMeta"
|
||
|
},
|
||
|
"data": {
|
||
2 years ago
|
"$ref": "#/components/schemas/UserDetails"
|
||
3 years ago
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"UserDetails": {
|
||
3 years ago
|
"type": "object",
|
||
2 years ago
|
"required": [
|
||
|
"id",
|
||
|
"lastLogin",
|
||
|
"backend",
|
||
|
"subadmin",
|
||
|
"quota",
|
||
|
"avatarScope",
|
||
|
"emailScope",
|
||
|
"additional_mail",
|
||
|
"additional_mailScope",
|
||
2 years ago
|
"display-name",
|
||
|
"displayname",
|
||
2 years ago
|
"displaynameScope",
|
||
|
"phone",
|
||
|
"phoneScope",
|
||
|
"address",
|
||
|
"addressScope",
|
||
|
"website",
|
||
|
"websiteScope",
|
||
|
"twitter",
|
||
|
"twitterScope",
|
||
|
"organisation",
|
||
|
"organisationScope",
|
||
|
"role",
|
||
|
"roleScope",
|
||
|
"headline",
|
||
|
"headlineScope",
|
||
|
"biography",
|
||
|
"biographyScope",
|
||
|
"profile_enabled",
|
||
|
"profile_enabledScope",
|
||
2 years ago
|
"fediverse",
|
||
|
"fediverseScope",
|
||
2 years ago
|
"groups",
|
||
|
"language",
|
||
|
"locale",
|
||
|
"backendCapabilities"
|
||
|
],
|
||
3 years ago
|
"properties": {
|
||
2 years ago
|
"enabled": {
|
||
|
"type": "boolean"
|
||
|
},
|
||
3 years ago
|
"storageLocation": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"id": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"lastLogin": {
|
||
|
"type": "integer"
|
||
|
},
|
||
|
"backend": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"subadmin": {
|
||
|
"type": "array",
|
||
|
"items": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"quota": {
|
||
|
"type": "object",
|
||
2 years ago
|
"required": [
|
||
|
"free",
|
||
|
"used",
|
||
|
"total",
|
||
|
"relative",
|
||
|
"quota"
|
||
|
],
|
||
3 years ago
|
"properties": {
|
||
|
"free": {
|
||
|
"type": "integer"
|
||
|
},
|
||
|
"used": {
|
||
|
"type": "integer"
|
||
|
},
|
||
|
"total": {
|
||
|
"type": "integer"
|
||
|
},
|
||
|
"relative": {
|
||
|
"type": "number"
|
||
|
},
|
||
|
"quota": {
|
||
|
"type": "integer"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"avatarScope": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"email": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"emailScope": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"additional_mail": {
|
||
|
"type": "array",
|
||
|
"items": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"additional_mailScope": {
|
||
|
"type": "array",
|
||
|
"items": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"displayname": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"displaynameScope": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"phone": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"phoneScope": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"address": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"addressScope": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"website": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"websiteScope": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"twitter": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"twitterScope": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"organisation": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"organisationScope": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"role": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"roleScope": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"headline": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"headlineScope": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"biography": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"biographyScope": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"profile_enabled": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"profile_enabledScope": {
|
||
|
"type": "string"
|
||
|
},
|
||
2 years ago
|
"fediverse": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"fediverseScope": {
|
||
|
"type": "string"
|
||
|
},
|
||
3 years ago
|
"groups": {
|
||
|
"type": "array",
|
||
|
"items": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"language": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"locale": {
|
||
|
"type": "string"
|
||
|
},
|
||
3 years ago
|
"notify_email": {
|
||
|
"type": "string"
|
||
|
},
|
||
3 years ago
|
"backendCapabilities": {
|
||
|
"type": "object",
|
||
2 years ago
|
"required": [
|
||
|
"setDisplayName",
|
||
|
"setPassword"
|
||
|
],
|
||
3 years ago
|
"properties": {
|
||
|
"setDisplayName": {
|
||
|
"type": "boolean"
|
||
|
},
|
||
|
"setPassword": {
|
||
|
"type": "boolean"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"display-name": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
2 years ago
|
},
|
||
|
"securitySchemes": {
|
||
|
"basic_auth": {
|
||
|
"type": "http",
|
||
|
"scheme": "basic"
|
||
|
}
|
||
3 years ago
|
}
|
||
|
},
|
||
|
"paths": {
|
||
2 years ago
|
"/ocs/v2.php/cloud/user": {
|
||
3 years ago
|
"get": {
|
||
|
"operationId": "get-current-user",
|
||
|
"responses": {
|
||
|
"200": {
|
||
|
"description": "",
|
||
|
"content": {
|
||
|
"application/json": {
|
||
|
"schema": {
|
||
2 years ago
|
"$ref": "#/components/schemas/User"
|
||
3 years ago
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"/ocs/v2.php/cloud/users/{userId}": {
|
||
3 years ago
|
"parameters": [
|
||
|
{
|
||
|
"name": "userId",
|
||
|
"in": "path",
|
||
|
"required": true,
|
||
|
"schema": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"get": {
|
||
|
"operationId": "get-user",
|
||
|
"responses": {
|
||
|
"200": {
|
||
|
"description": "",
|
||
|
"content": {
|
||
|
"application/json": {
|
||
|
"schema": {
|
||
2 years ago
|
"$ref": "#/components/schemas/User"
|
||
3 years ago
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|