A framework for building convergent cross-platform Nextcloud clients using Flutter.
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.

370 lines
7.9 KiB

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