Files
Umbraco-CMS/src/Umbraco.Web.UI.Client/schemas/api/api.yml

625 lines
15 KiB
YAML
Raw Normal View History

2022-05-18 12:32:57 +02:00
openapi: 3.0.2
info:
title: umbraco-backoffice-api
version: 1.0.0
paths:
2022-06-27 11:07:17 +02:00
/install/settings:
2022-05-19 12:07:58 +02:00
get:
2022-06-27 11:07:17 +02:00
operationId: GetInstallSettings
2022-05-19 12:07:58 +02:00
responses:
'200':
description: 200 response
content:
application/json:
schema:
2022-06-27 11:07:17 +02:00
$ref: '#/components/schemas/InstallSettingsResponse'
default:
description: default response
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
/install/setup:
2022-05-18 12:32:57 +02:00
post:
2022-06-27 11:07:17 +02:00
operationId: PostInstallSetup
2022-05-18 12:32:57 +02:00
parameters: []
requestBody:
content:
application/json:
schema:
2022-06-27 11:07:17 +02:00
$ref: '#/components/schemas/InstallSetupRequest'
2022-05-18 12:32:57 +02:00
required: true
responses:
'201':
description: 201 response
2022-05-19 12:07:58 +02:00
'400':
description: 400 response
2022-05-18 12:32:57 +02:00
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
2022-06-27 11:07:17 +02:00
/install/validateDatabase:
2022-05-18 12:32:57 +02:00
post:
2022-05-19 12:07:58 +02:00
operationId: PostInstallValidateDatabase
parameters: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/InstallSetupDatabaseConfiguration'
2022-05-19 12:07:58 +02:00
required: true
2022-05-18 12:32:57 +02:00
responses:
'201':
description: 201 response
2022-05-19 12:07:58 +02:00
'400':
description: 400 response
2022-05-18 12:32:57 +02:00
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
2022-08-24 16:03:35 +02:00
/manifests:
get:
operationId: Manifests
responses:
'200':
description: 200 response
content:
application/json:
schema:
$ref: '#/components/schemas/ManifestsResponse'
default:
description: default response
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
2022-09-05 10:21:47 +02:00
/manifests/packages:
get:
2022-09-05 15:41:45 +02:00
operationId: ManifestsPackages
2022-09-05 10:21:47 +02:00
responses:
'200':
description: 200 response
content:
application/json:
schema:
2022-09-05 15:41:45 +02:00
type: object
default:
description: default response
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
/manifests/packages/installed:
get:
operationId: ManifestsPackagesInstalled
responses:
'200':
description: 200 response
content:
application/json:
schema:
$ref: '#/components/schemas/ManifestsPackagesInstalledResponse'
2022-09-05 10:21:47 +02:00
default:
description: default response
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
2022-09-23 10:54:54 +02:00
/published-cache/status:
get:
operationId: PublishedCacheStatus
responses:
'200':
description: 200 response
content:
application/json:
schema:
type: string
default:
description: default response
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
/published-cache/reload:
post:
operationId: PublishedCacheReload
parameters: []
responses:
'201':
description: 201 response
'400':
description: 400 response
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
2022-10-06 11:02:00 +02:00
/published-cache/rebuild:
post:
operationId: PublishedCacheRebuild
parameters: []
responses:
'201':
description: 201 response
'400':
description: 400 response
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
/published-cache/collect:
get:
operationId: PublishedCacheCollect
responses:
'200':
description: 200 response
content:
application/json:
schema:
type: string
default:
description: default response
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
/server/status:
get:
operationId: GetStatus
responses:
'200':
description: 200 response
content:
application/json:
schema:
$ref: '#/components/schemas/StatusResponse'
default:
description: default response
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
/server/version:
get:
operationId: GetVersion
responses:
'200':
description: 200 response
content:
application/json:
schema:
$ref: '#/components/schemas/VersionResponse'
default:
description: default response
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
2022-07-27 13:47:04 +02:00
/upgrade/settings:
get:
operationId: GetUpgradeSettings
responses:
'200':
description: 200 response
content:
application/json:
schema:
$ref: '#/components/schemas/UpgradeSettingsResponse'
default:
description: default response
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
/upgrade/authorize:
post:
operationId: PostUpgradeAuthorize
parameters: []
responses:
'201':
description: 201 response
'400':
description: 400 response
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
2022-05-18 12:32:57 +02:00
/user:
get:
operationId: GetUser
responses:
'200':
description: 200 response
content:
application/json:
schema:
$ref: '#/components/schemas/UserResponse'
'403':
description: 403 response
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
2022-05-19 12:07:58 +02:00
/user/login:
2022-05-18 12:32:57 +02:00
post:
2022-05-19 12:07:58 +02:00
operationId: PostUserLogin
2022-05-19 10:34:11 +02:00
parameters: []
requestBody:
content:
application/json:
schema:
2022-05-19 12:07:58 +02:00
$ref: '#/components/schemas/UserLoginRequest'
2022-05-19 10:50:33 +02:00
required: true
responses:
'201':
description: 201 response
2022-05-19 12:07:58 +02:00
'403':
description: 403 response
2022-05-19 10:50:33 +02:00
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
2022-05-19 12:07:58 +02:00
/user/logout:
2022-05-19 10:50:33 +02:00
post:
2022-05-19 12:07:58 +02:00
operationId: PostUserLogout
2022-05-18 12:32:57 +02:00
responses:
'201':
description: 201 response
2022-05-19 12:07:58 +02:00
default:
description: default response
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
2022-05-19 12:07:58 +02:00
/user/sections:
get:
operationId: GetAllowedSections
responses:
'200':
description: 200 response
content:
application/json:
schema:
$ref: '#/components/schemas/AllowedSectionsResponse'
default:
description: default response
2022-05-18 12:32:57 +02:00
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
2022-09-21 13:49:29 +02:00
/telemetry/ConsentLevel:
get:
operationId: GetConsentLevel
responses:
'200':
description: 200 response
content:
application/json:
schema:
$ref: '#/components/schemas/ConsentLevelSettings'
default:
description: default response
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
post:
operationId: PostConsentLevel
parameters: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ConsentLevelSettings'
required: true
responses:
'201':
description: 201 response
'400':
description: 400 response
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
/telemetry/ConsentLevels:
get:
operationId: ConsentLevels
responses:
'200':
description: 200 response
content:
application/json:
schema:
type: array
items:
type: string
default:
description: default response
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
2022-05-18 12:32:57 +02:00
components:
schemas:
2022-05-19 10:34:11 +02:00
ConsentLevel:
2022-05-24 11:27:02 +02:00
type: string
enum:
- Minimal
- Basic
- Detailed
TelemetryModel:
2022-05-19 10:34:11 +02:00
type: object
properties:
level:
2022-05-24 11:27:02 +02:00
$ref: '#/components/schemas/ConsentLevel'
2022-05-19 10:34:11 +02:00
description:
type: string
required:
- level
- description
2022-06-27 11:07:17 +02:00
InstallUserModel:
2022-05-24 11:27:02 +02:00
type: object
properties:
minCharLength:
type: number
format: float
minNonAlphaNumericLength:
type: number
format: float
consentLevels:
type: array
items:
$ref: '#/components/schemas/TelemetryModel'
required:
- minCharLength
- minNonAlphaNumericLength
- consentLevels
2022-06-27 11:07:17 +02:00
InstallDatabaseModel:
2022-05-19 10:34:11 +02:00
type: object
properties:
id:
type: string
sortOrder:
type: number
format: float
displayName:
type: string
defaultDatabaseName:
type: string
providerName:
type: string
nullable: true
2022-06-29 15:55:26 +02:00
isConfigured:
2022-05-19 10:34:11 +02:00
type: boolean
requiresServer:
type: boolean
serverPlaceholder:
type: string
nullable: true
requiresCredentials:
type: boolean
supportsIntegratedAuthentication:
type: boolean
requiresConnectionTest:
type: boolean
required:
- id
- sortOrder
- displayName
- defaultDatabaseName
- providerName
2022-06-29 15:55:26 +02:00
- isConfigured
2022-05-19 10:34:11 +02:00
- requiresServer
- serverPlaceholder
- requiresCredentials
- supportsIntegratedAuthentication
- requiresConnectionTest
2022-06-27 11:07:17 +02:00
InstallSettingsResponse:
2022-05-19 10:34:11 +02:00
type: object
properties:
2022-05-24 11:27:02 +02:00
user:
2022-06-27 11:07:17 +02:00
$ref: '#/components/schemas/InstallUserModel'
2022-05-24 11:27:02 +02:00
databases:
2022-05-19 10:34:11 +02:00
type: array
items:
2022-06-27 11:07:17 +02:00
$ref: '#/components/schemas/InstallDatabaseModel'
2022-05-19 10:34:11 +02:00
required:
2022-05-24 11:27:02 +02:00
- user
- databases
2022-06-27 11:07:17 +02:00
ProblemDetails:
type: object
properties:
type:
type: string
status:
type: number
format: float
title:
type: string
detail:
type: string
instance:
type: string
errors:
type: object
required:
- type
- status
InstallSetupUserConfiguration:
type: object
properties:
name:
type: string
email:
type: string
password:
type: string
subscribeToNewsletter:
type: boolean
required:
- name
- email
- password
- subscribeToNewsletter
2022-06-27 11:07:17 +02:00
InstallSetupDatabaseConfiguration:
2022-05-19 10:50:33 +02:00
type: object
properties:
2022-06-30 13:15:15 +02:00
id:
type: string
server:
2022-05-19 10:50:33 +02:00
type: string
nullable: true
password:
type: string
nullable: true
username:
type: string
nullable: true
name:
2022-05-19 10:50:33 +02:00
type: string
nullable: true
providerName:
type: string
nullable: true
useIntegratedAuthentication:
2022-05-19 10:50:33 +02:00
type: boolean
nullable: true
connectionString:
2022-05-19 10:50:33 +02:00
type: string
nullable: true
2022-06-27 11:07:17 +02:00
InstallSetupRequest:
2022-05-19 10:50:33 +02:00
type: object
properties:
user:
$ref: '#/components/schemas/InstallSetupUserConfiguration'
2022-05-19 10:50:33 +02:00
telemetryLevel:
2022-05-24 11:27:02 +02:00
$ref: '#/components/schemas/ConsentLevel'
2022-05-19 10:50:33 +02:00
database:
2022-06-27 11:07:17 +02:00
$ref: '#/components/schemas/InstallSetupDatabaseConfiguration'
2022-05-19 10:50:33 +02:00
required:
- user
2022-05-19 10:50:33 +02:00
- telemetryLevel
2022-08-24 16:03:35 +02:00
ManifestsResponse:
type: object
properties:
manifests:
type: array
items:
type: object
2022-08-24 16:03:35 +02:00
required:
- manifests
2022-09-05 15:41:45 +02:00
PackageInstalled:
type: object
properties:
2022-09-05 15:41:45 +02:00
id:
type: string
name:
type: string
alias:
type: string
version:
type: string
2022-09-05 15:41:45 +02:00
hasMigrations:
type: boolean
hasPendingMigrations:
type: boolean
plans:
type: array
items:
type: object
required:
2022-09-05 15:41:45 +02:00
- id
- name
- alias
- version
2022-09-05 15:41:45 +02:00
- hasMigrations
- hasPendingMigrations
- plans
ManifestsPackagesInstalledResponse:
type: object
properties:
packages:
type: array
items:
2022-09-05 15:41:45 +02:00
$ref: '#/components/schemas/PackageInstalled'
required:
- packages
ServerStatus:
type: string
enum:
- running
- must-install
- must-upgrade
StatusResponse:
type: object
properties:
serverStatus:
$ref: '#/components/schemas/ServerStatus'
required:
- serverStatus
VersionResponse:
type: object
properties:
version:
type: string
required:
- version
2022-07-27 13:47:04 +02:00
UpgradeSettingsResponse:
type: object
properties:
currentState:
type: string
newState:
type: string
newVersion:
type: string
oldVersion:
type: string
reportUrl:
type: string
required:
- currentState
- newState
- newVersion
- oldVersion
- reportUrl
2022-05-19 12:07:58 +02:00
UserResponse:
type: object
properties:
username:
type: string
role:
type: string
required:
- username
- role
UserLoginRequest:
type: object
properties:
username:
type: string
password:
type: string
persist:
type: boolean
required:
- username
- password
- persist
AllowedSectionsResponse:
type: object
properties:
sections:
type: array
items:
type: string
required:
- sections
2022-09-21 13:49:29 +02:00
ConsentLevelSettings:
type: object
properties:
telemetryLevel:
2022-09-21 16:01:02 +02:00
$ref: '#/components/schemas/ConsentLevel'
2022-09-21 13:49:29 +02:00
required:
- telemetryLevel