fix references in api-definition

This commit is contained in:
Michael Hoennig 2022-08-11 12:43:29 +02:00
parent 1dd3b3e8e3
commit dfc7162675
4 changed files with 13 additions and 13 deletions

View File

@ -47,7 +47,7 @@ post:
content:
'application/json':
schema:
$ref: './api-definition/hs-customer-schemas/components.yaml#/schemas/Customer'
$ref: './api-definition/hs-customer-schemas.yaml#/components/schemas/Customer'
"401":
$ref: './api-definition/error-responses.yaml#/components/responses/Unauthorized'
"403":

View File

@ -10,7 +10,7 @@ components:
type: string
format: uuid
customer:
$ref: './api-definition/hs-customers-schemas.yaml#/components/schemas/Customer'
$ref: './api-definition/hs-customer-schemas.yaml#/components/schemas/Customer'
name:
type: string
description:

View File

@ -3,8 +3,8 @@ patch:
- packages
operationId: updatePackage
parameters:
- $ref: '#/components/parameters/currentUser'
- $ref: '#/components/parameters/assumedRoles'
- $ref: './api-definition/auth.yaml#/components/parameters/currentUser'
- $ref: './api-definition/auth.yaml#/components/parameters/assumedRoles'
- name: packageUUID
in: path
required: true
@ -15,15 +15,15 @@ patch:
content:
'application/json':
schema:
$ref: '#/components/schemas/PackageUpdate'
$ref: './api-definition/hs-package-schemas.yaml#/components/schemas/PackageUpdate'
responses:
"200":
description: OK
content:
'application/json':
schema:
$ref: '#/components/schemas/Package'
$ref: './api-definition/hs-package-schemas.yaml#/components/schemas/Package'
"401":
$ref: '#/components/responses/Unauthorized'
$ref: './api-definition/error-responses.yaml#/components/responses/Unauthorized'
"403":
$ref: '#/components/responses/Forbidden'
$ref: './api-definition/error-responses.yaml#/components/responses/Forbidden'

View File

@ -3,8 +3,8 @@ get:
- packages
operationId: listPackages
parameters:
- $ref: './auth.yaml#/components/parameters/currentUser'
- $ref: './auth.yaml#/components/parameters/assumedRoles'
- $ref: './api-definition/auth.yaml#/components/parameters/currentUser'
- $ref: './api-definition/auth.yaml#/components/parameters/assumedRoles'
- name: name
in: query
required: false
@ -18,8 +18,8 @@ get:
schema:
type: array
items:
$ref: './hs-package-schemas/components/schemas/Package'
$ref: './api-definition/hs-package-schemas.yaml#/components/schemas/Package'
"401":
$ref: './error-responses.yaml#/components/responses/Unauthorized'
$ref: './api-definition/error-responses.yaml#/components/responses/Unauthorized'
"403":
$ref: './error-responses.yaml#/components/responses/Forbidden'
$ref: './api-definition/error-responses.yaml#/components/responses/Forbidden'