auto-generated schema

This commit is contained in:
Jacob Overgaard
2022-05-18 12:32:57 +02:00
parent 2a4359cc21
commit 9eabf9de1a
2 changed files with 122 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
# Schemas
These schemas are auto-generated by certain processes and are not to be touched.

View File

@@ -0,0 +1,119 @@
openapi: 3.0.2
info:
title: umbraco-backoffice-api
version: 1.0.0
paths:
/init:
get:
operationId: GetInit
responses:
'200':
description: 200 response
content:
application/json:
schema:
$ref: '#/components/schemas/InitResponse'
default:
description: default response
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/user/login:
post:
operationId: PostUserLogin
parameters: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UserLoginRequest'
required: true
responses:
'201':
description: 201 response
'403':
description: 403 response
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/user/logout:
post:
operationId: PostUserLogout
responses:
'201':
description: 201 response
default:
description: default response
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/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/ErrorResponse'
/install:
post:
operationId: PostInstall
responses:
'201':
description: 201 response
default:
description: default response
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
InitResponse:
type: object
properties:
version:
type: string
installed:
type: boolean
required:
- version
- installed
ErrorResponse:
type: object
properties:
errorMessage:
type: string
required:
- errorMessage
UserLoginRequest:
type: object
properties:
userame:
type: string
password:
type: string
role:
type: string
required:
- userame
- password
- role
UserResponse:
type: object
properties:
username:
type: string
required:
- username