From 7091d561a94126c2234f8756ff5409ffec8a66ec Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Wed, 17 Apr 2024 08:01:27 +0200 Subject: [PATCH] simple relativ paths use simple relative paths in test OpenApi-yaml too --- .../hs-office-bankaccounts-with-uuid.yaml | 20 +++++----- .../hs-office/hs-office-bankaccounts.yaml | 24 +++++------ .../hs-office-contacts-with-uuid.yaml | 32 +++++++-------- .../hs-office/hs-office-contacts.yaml | 24 +++++------ .../hs-office-coopassets-with-uuid.yaml | 10 ++--- .../hs-office/hs-office-coopassets.yaml | 24 +++++------ .../hs-office-coopshares-with-uuid.yaml | 10 ++--- .../hs-office/hs-office-coopshares.yaml | 24 +++++------ .../hs-office/hs-office-debitor-schemas.yaml | 8 ++-- .../hs-office-debitors-with-uuid.yaml | 32 +++++++-------- .../hs-office/hs-office-debitors.yaml | 24 +++++------ .../hs-office-membership-schemas.yaml | 4 +- .../hs-office-memberships-with-uuid.yaml | 32 +++++++-------- .../hs-office/hs-office-memberships.yaml | 24 +++++------ .../hs-office/hs-office-partner-schemas.yaml | 2 +- .../hs-office-partners-with-uuid.yaml | 32 +++++++-------- .../hs-office/hs-office-partners.yaml | 24 +++++------ .../hs-office-persons-with-uuid.yaml | 32 +++++++-------- .../hs-office/hs-office-persons.yaml | 24 +++++------ .../hs-office/hs-office-relation-schemas.yaml | 6 +-- .../hs-office-relations-with-uuid.yaml | 32 +++++++-------- .../hs-office/hs-office-relations.yaml | 26 ++++++------ .../hs-office-sepamandate-schemas.yaml | 4 +- .../hs-office-sepamandates-with-uuid.yaml | 32 +++++++-------- .../hs-office/hs-office-sepamandates.yaml | 24 +++++------ .../api-definition/hs-office/hs-office.yaml | 40 +++++++++---------- .../rbac/rbac-grants-with-id.yaml | 22 +++++----- .../api-definition/rbac/rbac-grants.yaml | 20 +++++----- .../api-definition/rbac/rbac-roles.yaml | 6 +-- .../rbac/rbac-users-with-id-permissions.yaml | 10 ++--- .../rbac/rbac-users-with-uuid.yaml | 20 +++++----- .../api-definition/rbac/rbac-users.yaml | 16 ++++---- .../resources/api-definition/rbac/rbac.yaml | 12 +++--- 33 files changed, 338 insertions(+), 338 deletions(-) diff --git a/src/main/resources/api-definition/hs-office/hs-office-bankaccounts-with-uuid.yaml b/src/main/resources/api-definition/hs-office/hs-office-bankaccounts-with-uuid.yaml index bcf80063..44f89fa1 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-bankaccounts-with-uuid.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-bankaccounts-with-uuid.yaml @@ -4,8 +4,8 @@ get: description: 'Fetch a single bank account by its uuid, if visible for the current subject.' operationId: getBankAccountByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: bankAccountUUID in: path required: true @@ -19,11 +19,11 @@ get: content: 'application/json': schema: - $ref: './hs-office-bankaccount-schemas.yaml#/components/schemas/HsOfficeBankAccount' + $ref: 'hs-office-bankaccount-schemas.yaml#/components/schemas/HsOfficeBankAccount' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' delete: tags: @@ -31,8 +31,8 @@ delete: description: 'Delete a single bank account by its uuid, if permitted for the current subject.' operationId: deleteBankAccountByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: bankAccountUUID in: path required: true @@ -44,8 +44,8 @@ delete: "204": description: No Content "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "404": - $ref: './error-responses.yaml#/components/responses/NotFound' + $ref: 'error-responses.yaml#/components/responses/NotFound' diff --git a/src/main/resources/api-definition/hs-office/hs-office-bankaccounts.yaml b/src/main/resources/api-definition/hs-office/hs-office-bankaccounts.yaml index 913be50f..75380d5d 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-bankaccounts.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-bankaccounts.yaml @@ -5,8 +5,8 @@ get: - hs-office-bank-accounts operationId: listBankAccounts parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: holder in: query required: false @@ -21,11 +21,11 @@ get: schema: type: array items: - $ref: './hs-office-bankaccount-schemas.yaml#/components/schemas/HsOfficeBankAccount' + $ref: 'hs-office-bankaccount-schemas.yaml#/components/schemas/HsOfficeBankAccount' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' post: summary: Adds a new bank account. @@ -33,13 +33,13 @@ post: - hs-office-bank-accounts operationId: addBankAccount parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' requestBody: content: 'application/json': schema: - $ref: './hs-office-bankaccount-schemas.yaml#/components/schemas/HsOfficeBankAccountInsert' + $ref: 'hs-office-bankaccount-schemas.yaml#/components/schemas/HsOfficeBankAccountInsert' required: true responses: "201": @@ -47,10 +47,10 @@ post: content: 'application/json': schema: - $ref: './hs-office-bankaccount-schemas.yaml#/components/schemas/HsOfficeBankAccount' + $ref: 'hs-office-bankaccount-schemas.yaml#/components/schemas/HsOfficeBankAccount' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "409": - $ref: './error-responses.yaml#/components/responses/Conflict' + $ref: 'error-responses.yaml#/components/responses/Conflict' diff --git a/src/main/resources/api-definition/hs-office/hs-office-contacts-with-uuid.yaml b/src/main/resources/api-definition/hs-office/hs-office-contacts-with-uuid.yaml index 60f74fa5..13e96f39 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-contacts-with-uuid.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-contacts-with-uuid.yaml @@ -4,8 +4,8 @@ get: description: 'Fetch a single business contact by its uuid, if visible for the current subject.' operationId: getContactByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: contactUUID in: path required: true @@ -19,12 +19,12 @@ get: content: 'application/json': schema: - $ref: './hs-office-contact-schemas.yaml#/components/schemas/HsOfficeContact' + $ref: 'hs-office-contact-schemas.yaml#/components/schemas/HsOfficeContact' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' patch: tags: @@ -32,8 +32,8 @@ patch: description: 'Updates a single contact by its uuid, if permitted for the current subject.' operationId: patchContact parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: contactUUID in: path required: true @@ -44,18 +44,18 @@ patch: content: 'application/json': schema: - $ref: './hs-office-contact-schemas.yaml#/components/schemas/HsOfficeContactPatch' + $ref: 'hs-office-contact-schemas.yaml#/components/schemas/HsOfficeContactPatch' responses: "200": description: OK content: 'application/json': schema: - $ref: './hs-office-contact-schemas.yaml#/components/schemas/HsOfficeContact' + $ref: 'hs-office-contact-schemas.yaml#/components/schemas/HsOfficeContact' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' delete: tags: @@ -63,8 +63,8 @@ delete: description: 'Delete a single business contact by its uuid, if permitted for the current subject.' operationId: deleteContactByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: contactUUID in: path required: true @@ -76,8 +76,8 @@ delete: "204": description: No Content "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "404": - $ref: './error-responses.yaml#/components/responses/NotFound' + $ref: 'error-responses.yaml#/components/responses/NotFound' diff --git a/src/main/resources/api-definition/hs-office/hs-office-contacts.yaml b/src/main/resources/api-definition/hs-office/hs-office-contacts.yaml index 89bf366a..97821358 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-contacts.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-contacts.yaml @@ -5,8 +5,8 @@ get: - hs-office-contacts operationId: listContacts parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: name in: query required: false @@ -21,11 +21,11 @@ get: schema: type: array items: - $ref: './hs-office-contact-schemas.yaml#/components/schemas/HsOfficeContact' + $ref: 'hs-office-contact-schemas.yaml#/components/schemas/HsOfficeContact' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' post: summary: Adds a new contact. @@ -33,13 +33,13 @@ post: - hs-office-contacts operationId: addContact parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' requestBody: content: 'application/json': schema: - $ref: './hs-office-contact-schemas.yaml#/components/schemas/HsOfficeContactInsert' + $ref: 'hs-office-contact-schemas.yaml#/components/schemas/HsOfficeContactInsert' required: true responses: "201": @@ -47,10 +47,10 @@ post: content: 'application/json': schema: - $ref: './hs-office-contact-schemas.yaml#/components/schemas/HsOfficeContact' + $ref: 'hs-office-contact-schemas.yaml#/components/schemas/HsOfficeContact' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "409": - $ref: './error-responses.yaml#/components/responses/Conflict' + $ref: 'error-responses.yaml#/components/responses/Conflict' diff --git a/src/main/resources/api-definition/hs-office/hs-office-coopassets-with-uuid.yaml b/src/main/resources/api-definition/hs-office/hs-office-coopassets-with-uuid.yaml index 6dae49c0..7fd6d243 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-coopassets-with-uuid.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-coopassets-with-uuid.yaml @@ -4,8 +4,8 @@ get: description: 'Fetch a single asset transaction by its uuid, if visible for the current subject.' operationId: getCoopAssetTransactionByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: assetTransactionUUID in: path required: true @@ -19,9 +19,9 @@ get: content: 'application/json': schema: - $ref: './hs-office-coopassets-schemas.yaml#/components/schemas/HsOfficeCoopAssetsTransaction' + $ref: 'hs-office-coopassets-schemas.yaml#/components/schemas/HsOfficeCoopAssetsTransaction' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' diff --git a/src/main/resources/api-definition/hs-office/hs-office-coopassets.yaml b/src/main/resources/api-definition/hs-office/hs-office-coopassets.yaml index 75b19f7f..aa0ae953 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-coopassets.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-coopassets.yaml @@ -5,8 +5,8 @@ get: - hs-office-coopAssets operationId: listCoopAssets parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: membershipUuid in: query required: false @@ -36,11 +36,11 @@ get: schema: type: array items: - $ref: './hs-office-coopassets-schemas.yaml#/components/schemas/HsOfficeCoopAssetsTransaction' + $ref: 'hs-office-coopassets-schemas.yaml#/components/schemas/HsOfficeCoopAssetsTransaction' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' post: summary: Adds a new cooperative asset transaction. @@ -48,25 +48,25 @@ post: - hs-office-coopAssets operationId: addCoopAssetsTransaction parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' requestBody: description: A JSON object describing the new cooperative assets transaction. required: true content: application/json: schema: - $ref: '/hs-office-coopassets-schemas.yaml#/components/schemas/HsOfficeCoopAssetsTransactionInsert' + $ref: 'hs-office-coopassets-schemas.yaml#/components/schemas/HsOfficeCoopAssetsTransactionInsert' responses: "201": description: Created content: 'application/json': schema: - $ref: './hs-office-coopassets-schemas.yaml#/components/schemas/HsOfficeCoopAssetsTransaction' + $ref: 'hs-office-coopassets-schemas.yaml#/components/schemas/HsOfficeCoopAssetsTransaction' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "409": - $ref: './error-responses.yaml#/components/responses/Conflict' + $ref: 'error-responses.yaml#/components/responses/Conflict' diff --git a/src/main/resources/api-definition/hs-office/hs-office-coopshares-with-uuid.yaml b/src/main/resources/api-definition/hs-office/hs-office-coopshares-with-uuid.yaml index 8d40ace8..cd7ff827 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-coopshares-with-uuid.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-coopshares-with-uuid.yaml @@ -4,8 +4,8 @@ get: description: 'Fetch a single share transaction by its uuid, if visible for the current subject.' operationId: getCoopShareTransactionByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: shareTransactionUUID in: path required: true @@ -19,9 +19,9 @@ get: content: 'application/json': schema: - $ref: './hs-office-coopshares-schemas.yaml#/components/schemas/HsOfficeCoopSharesTransaction' + $ref: 'hs-office-coopshares-schemas.yaml#/components/schemas/HsOfficeCoopSharesTransaction' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' diff --git a/src/main/resources/api-definition/hs-office/hs-office-coopshares.yaml b/src/main/resources/api-definition/hs-office/hs-office-coopshares.yaml index f24853d7..338018ad 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-coopshares.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-coopshares.yaml @@ -5,8 +5,8 @@ get: - hs-office-coopShares operationId: listCoopShares parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: membershipUuid in: query required: false @@ -36,11 +36,11 @@ get: schema: type: array items: - $ref: './hs-office-coopshares-schemas.yaml#/components/schemas/HsOfficeCoopSharesTransaction' + $ref: 'hs-office-coopshares-schemas.yaml#/components/schemas/HsOfficeCoopSharesTransaction' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' post: summary: Adds a new cooperative share transaction. @@ -48,25 +48,25 @@ post: - hs-office-coopShares operationId: addCoopSharesTransaction parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' requestBody: description: A JSON object describing the new cooperative shares transaction. required: true content: application/json: schema: - $ref: '/hs-office-coopshares-schemas.yaml#/components/schemas/HsOfficeCoopSharesTransactionInsert' + $ref: 'hs-office-coopshares-schemas.yaml#/components/schemas/HsOfficeCoopSharesTransactionInsert' responses: "201": description: Created content: 'application/json': schema: - $ref: './hs-office-coopshares-schemas.yaml#/components/schemas/HsOfficeCoopSharesTransaction' + $ref: 'hs-office-coopshares-schemas.yaml#/components/schemas/HsOfficeCoopSharesTransaction' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "409": - $ref: './error-responses.yaml#/components/responses/Conflict' + $ref: 'error-responses.yaml#/components/responses/Conflict' diff --git a/src/main/resources/api-definition/hs-office/hs-office-debitor-schemas.yaml b/src/main/resources/api-definition/hs-office/hs-office-debitor-schemas.yaml index dcf3df93..f38644c1 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-debitor-schemas.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-debitor-schemas.yaml @@ -10,7 +10,7 @@ components: type: string format: uuid debitorRel: - $ref: './hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelation' + $ref: 'hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelation' debitorNumber: type: integer format: int32 @@ -22,7 +22,7 @@ components: minimum: 00 maximum: 99 partner: - $ref: './hs-office-partner-schemas.yaml#/components/schemas/HsOfficePartner' + $ref: 'hs-office-partner-schemas.yaml#/components/schemas/HsOfficePartner' billable: type: boolean vatId: @@ -35,7 +35,7 @@ components: vatReverseCharge: type: boolean refundBankAccount: - $ref: './hs-office-bankaccount-schemas.yaml#/components/schemas/HsOfficeBankAccount' + $ref: 'hs-office-bankaccount-schemas.yaml#/components/schemas/HsOfficeBankAccount' defaultPrefix: type: string pattern: '^[a-z0-9]{3}$' @@ -76,7 +76,7 @@ components: type: object properties: debitorRel: - $ref: './hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelationInsert' + $ref: 'hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelationInsert' debitorRelUuid: type: string format: uuid diff --git a/src/main/resources/api-definition/hs-office/hs-office-debitors-with-uuid.yaml b/src/main/resources/api-definition/hs-office/hs-office-debitors-with-uuid.yaml index 3789879d..09c6d42d 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-debitors-with-uuid.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-debitors-with-uuid.yaml @@ -4,8 +4,8 @@ get: description: 'Fetch a single debitor by its uuid, if visible for the current subject.' operationId: getDebitorByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: debitorUUID in: path required: true @@ -19,12 +19,12 @@ get: content: 'application/json': schema: - $ref: './hs-office-debitor-schemas.yaml#/components/schemas/HsOfficeDebitor' + $ref: 'hs-office-debitor-schemas.yaml#/components/schemas/HsOfficeDebitor' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' patch: tags: @@ -32,8 +32,8 @@ patch: description: 'Updates a single debitor by its uuid, if permitted for the current subject.' operationId: patchDebitor parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: debitorUUID in: path required: true @@ -44,18 +44,18 @@ patch: content: 'application/json': schema: - $ref: './hs-office-debitor-schemas.yaml#/components/schemas/HsOfficeDebitorPatch' + $ref: 'hs-office-debitor-schemas.yaml#/components/schemas/HsOfficeDebitorPatch' responses: "200": description: OK content: 'application/json': schema: - $ref: './hs-office-debitor-schemas.yaml#/components/schemas/HsOfficeDebitor' + $ref: 'hs-office-debitor-schemas.yaml#/components/schemas/HsOfficeDebitor' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' delete: tags: @@ -63,8 +63,8 @@ delete: description: 'Delete a single debitor by its uuid, if permitted for the current subject.' operationId: deleteDebitorByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: debitorUUID in: path required: true @@ -76,8 +76,8 @@ delete: "204": description: No Content "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "404": - $ref: './error-responses.yaml#/components/responses/NotFound' + $ref: 'error-responses.yaml#/components/responses/NotFound' diff --git a/src/main/resources/api-definition/hs-office/hs-office-debitors.yaml b/src/main/resources/api-definition/hs-office/hs-office-debitors.yaml index c35deb7a..5936198b 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-debitors.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-debitors.yaml @@ -5,8 +5,8 @@ get: - hs-office-debitors operationId: listDebitors parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: name in: query required: false @@ -27,11 +27,11 @@ get: schema: type: array items: - $ref: './hs-office-debitor-schemas.yaml#/components/schemas/HsOfficeDebitor' + $ref: 'hs-office-debitor-schemas.yaml#/components/schemas/HsOfficeDebitor' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' post: summary: Adds a new debitor. @@ -39,13 +39,13 @@ post: - hs-office-debitors operationId: addDebitor parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' requestBody: content: 'application/json': schema: - $ref: './hs-office-debitor-schemas.yaml#/components/schemas/HsOfficeDebitorInsert' + $ref: 'hs-office-debitor-schemas.yaml#/components/schemas/HsOfficeDebitorInsert' required: true responses: "201": @@ -53,10 +53,10 @@ post: content: 'application/json': schema: - $ref: './hs-office-debitor-schemas.yaml#/components/schemas/HsOfficeDebitor' + $ref: 'hs-office-debitor-schemas.yaml#/components/schemas/HsOfficeDebitor' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "409": - $ref: './error-responses.yaml#/components/responses/Conflict' + $ref: 'error-responses.yaml#/components/responses/Conflict' diff --git a/src/main/resources/api-definition/hs-office/hs-office-membership-schemas.yaml b/src/main/resources/api-definition/hs-office/hs-office-membership-schemas.yaml index ca42b367..7132cff4 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-membership-schemas.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-membership-schemas.yaml @@ -22,9 +22,9 @@ components: type: string format: uuid partner: - $ref: './hs-office-partner-schemas.yaml#/components/schemas/HsOfficePartner' + $ref: 'hs-office-partner-schemas.yaml#/components/schemas/HsOfficePartner' mainDebitor: - $ref: './hs-office-debitor-schemas.yaml#/components/schemas/HsOfficeDebitor' + $ref: 'hs-office-debitor-schemas.yaml#/components/schemas/HsOfficeDebitor' memberNumber: type: integer minimum: 1000000 diff --git a/src/main/resources/api-definition/hs-office/hs-office-memberships-with-uuid.yaml b/src/main/resources/api-definition/hs-office/hs-office-memberships-with-uuid.yaml index bec6911f..4bd1b3fb 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-memberships-with-uuid.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-memberships-with-uuid.yaml @@ -4,8 +4,8 @@ get: description: 'Fetch a single membership by its uuid, if visible for the current subject.' operationId: getMembershipByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: membershipUUID in: path required: true @@ -19,12 +19,12 @@ get: content: 'application/json': schema: - $ref: './hs-office-membership-schemas.yaml#/components/schemas/HsOfficeMembership' + $ref: 'hs-office-membership-schemas.yaml#/components/schemas/HsOfficeMembership' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' patch: tags: @@ -32,8 +32,8 @@ patch: description: 'Updates a single membership by its uuid, if permitted for the current subject.' operationId: patchMembership parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: membershipUUID in: path required: true @@ -44,18 +44,18 @@ patch: content: 'application/json': schema: - $ref: './hs-office-membership-schemas.yaml#/components/schemas/HsOfficeMembershipPatch' + $ref: 'hs-office-membership-schemas.yaml#/components/schemas/HsOfficeMembershipPatch' responses: "200": description: OK content: 'application/json': schema: - $ref: './hs-office-membership-schemas.yaml#/components/schemas/HsOfficeMembership' + $ref: 'hs-office-membership-schemas.yaml#/components/schemas/HsOfficeMembership' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' delete: tags: @@ -63,8 +63,8 @@ delete: description: 'Delete a single membership by its uuid, if permitted for the current subject.' operationId: deleteMembershipByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: membershipUUID in: path required: true @@ -76,8 +76,8 @@ delete: "204": description: No Content "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "404": - $ref: './error-responses.yaml#/components/responses/NotFound' + $ref: 'error-responses.yaml#/components/responses/NotFound' diff --git a/src/main/resources/api-definition/hs-office/hs-office-memberships.yaml b/src/main/resources/api-definition/hs-office/hs-office-memberships.yaml index 3833752b..260dee51 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-memberships.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-memberships.yaml @@ -6,8 +6,8 @@ get: - hs-office-memberships operationId: listMemberships parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: partnerUuid in: query required: false @@ -29,11 +29,11 @@ get: schema: type: array items: - $ref: './hs-office-membership-schemas.yaml#/components/schemas/HsOfficeMembership' + $ref: 'hs-office-membership-schemas.yaml#/components/schemas/HsOfficeMembership' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' post: summary: Adds a new membership. @@ -41,25 +41,25 @@ post: - hs-office-memberships operationId: addMembership parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' requestBody: description: A JSON object describing the new membership. required: true content: application/json: schema: - $ref: '/hs-office-membership-schemas.yaml#/components/schemas/HsOfficeMembershipInsert' + $ref: 'hs-office-membership-schemas.yaml#/components/schemas/HsOfficeMembershipInsert' responses: "201": description: Created content: 'application/json': schema: - $ref: './hs-office-membership-schemas.yaml#/components/schemas/HsOfficeMembership' + $ref: 'hs-office-membership-schemas.yaml#/components/schemas/HsOfficeMembership' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "409": - $ref: './error-responses.yaml#/components/responses/Conflict' + $ref: 'error-responses.yaml#/components/responses/Conflict' diff --git a/src/main/resources/api-definition/hs-office/hs-office-partner-schemas.yaml b/src/main/resources/api-definition/hs-office/hs-office-partner-schemas.yaml index 89b22241..0e5952e1 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-partner-schemas.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-partner-schemas.yaml @@ -15,7 +15,7 @@ components: minimum: 10000 maximum: 99999 partnerRel: - $ref: './hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelation' + $ref: 'hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelation' details: $ref: '#/components/schemas/HsOfficePartnerDetails' diff --git a/src/main/resources/api-definition/hs-office/hs-office-partners-with-uuid.yaml b/src/main/resources/api-definition/hs-office/hs-office-partners-with-uuid.yaml index bc9927f3..914df66b 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-partners-with-uuid.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-partners-with-uuid.yaml @@ -4,8 +4,8 @@ get: description: 'Fetch a single business partner by its uuid, if visible for the current subject.' operationId: getPartnerByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: partnerUUID in: path required: true @@ -19,12 +19,12 @@ get: content: 'application/json': schema: - $ref: './hs-office-partner-schemas.yaml#/components/schemas/HsOfficePartner' + $ref: 'hs-office-partner-schemas.yaml#/components/schemas/HsOfficePartner' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' patch: tags: @@ -32,8 +32,8 @@ patch: description: 'Updates a single business partner by its uuid, if permitted for the current subject.' operationId: patchPartner parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: partnerUUID in: path required: true @@ -44,18 +44,18 @@ patch: content: 'application/json': schema: - $ref: './hs-office-partner-schemas.yaml#/components/schemas/HsOfficePartnerPatch' + $ref: 'hs-office-partner-schemas.yaml#/components/schemas/HsOfficePartnerPatch' responses: "200": description: OK content: 'application/json': schema: - $ref: './hs-office-partner-schemas.yaml#/components/schemas/HsOfficePartner' + $ref: 'hs-office-partner-schemas.yaml#/components/schemas/HsOfficePartner' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' delete: tags: @@ -63,8 +63,8 @@ delete: description: 'Delete a single business partner by its uuid, if permitted for the current subject.' operationId: deletePartnerByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: partnerUUID in: path required: true @@ -76,8 +76,8 @@ delete: "204": description: No Content "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "404": - $ref: './error-responses.yaml#/components/responses/NotFound' + $ref: 'error-responses.yaml#/components/responses/NotFound' diff --git a/src/main/resources/api-definition/hs-office/hs-office-partners.yaml b/src/main/resources/api-definition/hs-office/hs-office-partners.yaml index 80f356ab..1f6ee36e 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-partners.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-partners.yaml @@ -5,8 +5,8 @@ get: - hs-office-partners operationId: listPartners parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: name in: query required: false @@ -21,11 +21,11 @@ get: schema: type: array items: - $ref: './hs-office-partner-schemas.yaml#/components/schemas/HsOfficePartner' + $ref: 'hs-office-partner-schemas.yaml#/components/schemas/HsOfficePartner' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' post: summary: Adds a new business partner. @@ -33,13 +33,13 @@ post: - hs-office-partners operationId: addPartner parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' requestBody: content: 'application/json': schema: - $ref: './hs-office-partner-schemas.yaml#/components/schemas/HsOfficePartnerInsert' + $ref: 'hs-office-partner-schemas.yaml#/components/schemas/HsOfficePartnerInsert' required: true responses: "201": @@ -47,10 +47,10 @@ post: content: 'application/json': schema: - $ref: './hs-office-partner-schemas.yaml#/components/schemas/HsOfficePartner' + $ref: 'hs-office-partner-schemas.yaml#/components/schemas/HsOfficePartner' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "409": - $ref: './error-responses.yaml#/components/responses/Conflict' + $ref: 'error-responses.yaml#/components/responses/Conflict' diff --git a/src/main/resources/api-definition/hs-office/hs-office-persons-with-uuid.yaml b/src/main/resources/api-definition/hs-office/hs-office-persons-with-uuid.yaml index 4d550fc9..1b90c777 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-persons-with-uuid.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-persons-with-uuid.yaml @@ -4,8 +4,8 @@ get: description: 'Fetch a single business person by its uuid, if visible for the current subject.' operationId: getPersonByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: personUUID in: path required: true @@ -19,12 +19,12 @@ get: content: 'application/json': schema: - $ref: './hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson' + $ref: 'hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' patch: tags: @@ -32,8 +32,8 @@ patch: description: 'Updates a single person by its uuid, if permitted for the current subject.' operationId: patchPerson parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: personUUID in: path required: true @@ -44,18 +44,18 @@ patch: content: 'application/json': schema: - $ref: './hs-office-person-schemas.yaml#/components/schemas/HsOfficePersonPatch' + $ref: 'hs-office-person-schemas.yaml#/components/schemas/HsOfficePersonPatch' responses: "200": description: OK content: 'application/json': schema: - $ref: './hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson' + $ref: 'hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' delete: tags: @@ -63,8 +63,8 @@ delete: description: 'Delete a single business person by its uuid, if permitted for the current subject.' operationId: deletePersonByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: personUUID in: path required: true @@ -76,8 +76,8 @@ delete: "204": description: No Content "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "404": - $ref: './error-responses.yaml#/components/responses/NotFound' + $ref: 'error-responses.yaml#/components/responses/NotFound' diff --git a/src/main/resources/api-definition/hs-office/hs-office-persons.yaml b/src/main/resources/api-definition/hs-office/hs-office-persons.yaml index 3e6f0873..8aa70442 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-persons.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-persons.yaml @@ -5,8 +5,8 @@ get: - hs-office-persons operationId: listPersons parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: name in: query required: false @@ -21,11 +21,11 @@ get: schema: type: array items: - $ref: './hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson' + $ref: 'hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' post: summary: Adds a new person. @@ -33,13 +33,13 @@ post: - hs-office-persons operationId: addPerson parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' requestBody: content: 'application/json': schema: - $ref: './hs-office-person-schemas.yaml#/components/schemas/HsOfficePersonInsert' + $ref: 'hs-office-person-schemas.yaml#/components/schemas/HsOfficePersonInsert' required: true responses: "201": @@ -47,10 +47,10 @@ post: content: 'application/json': schema: - $ref: './hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson' + $ref: 'hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "409": - $ref: './error-responses.yaml#/components/responses/Conflict' + $ref: 'error-responses.yaml#/components/responses/Conflict' diff --git a/src/main/resources/api-definition/hs-office/hs-office-relation-schemas.yaml b/src/main/resources/api-definition/hs-office/hs-office-relation-schemas.yaml index 7b316b40..e0448a6f 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-relation-schemas.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-relation-schemas.yaml @@ -22,16 +22,16 @@ components: type: string format: uuid anchor: - $ref: './hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson' + $ref: 'hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson' holder: - $ref: './hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson' + $ref: 'hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson' type: type: string mark: type: string nullable: true contact: - $ref: './hs-office-contact-schemas.yaml#/components/schemas/HsOfficeContact' + $ref: 'hs-office-contact-schemas.yaml#/components/schemas/HsOfficeContact' HsOfficeRelationPatch: type: object diff --git a/src/main/resources/api-definition/hs-office/hs-office-relations-with-uuid.yaml b/src/main/resources/api-definition/hs-office/hs-office-relations-with-uuid.yaml index 83b9cf3e..4e8010e7 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-relations-with-uuid.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-relations-with-uuid.yaml @@ -4,8 +4,8 @@ get: description: 'Fetch a single person relation by its uuid, if visible for the current subject.' operationId: getRelationByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: relationUUID in: path required: true @@ -19,12 +19,12 @@ get: content: 'application/json': schema: - $ref: './hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelation' + $ref: 'hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelation' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' patch: tags: @@ -32,8 +32,8 @@ patch: description: 'Updates a single person relation by its uuid, if permitted for the current subject.' operationId: patchRelation parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: relationUUID in: path required: true @@ -44,18 +44,18 @@ patch: content: 'application/json': schema: - $ref: './hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelationPatch' + $ref: 'hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelationPatch' responses: "200": description: OK content: 'application/json': schema: - $ref: './hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelation' + $ref: 'hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelation' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' delete: tags: @@ -63,8 +63,8 @@ delete: description: 'Delete a single person relation by its uuid, if permitted for the current subject.' operationId: deleteRelationByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: relationUUID in: path required: true @@ -76,8 +76,8 @@ delete: "204": description: No Content "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "404": - $ref: './error-responses.yaml#/components/responses/NotFound' + $ref: 'error-responses.yaml#/components/responses/NotFound' diff --git a/src/main/resources/api-definition/hs-office/hs-office-relations.yaml b/src/main/resources/api-definition/hs-office/hs-office-relations.yaml index 0c98075f..94131df5 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-relations.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-relations.yaml @@ -5,8 +5,8 @@ get: - hs-office-relations operationId: listRelations parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: personUuid in: query required: true @@ -18,7 +18,7 @@ get: in: query required: false schema: - $ref: './hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelationType' + $ref: 'hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelationType' description: Prefix of name properties from holder or contact to filter the results. responses: "200": @@ -28,11 +28,11 @@ get: schema: type: array items: - $ref: './hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelation' + $ref: 'hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelation' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' post: summary: Adds a new person relation. @@ -40,13 +40,13 @@ post: - hs-office-relations operationId: addRelation parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' requestBody: content: 'application/json': schema: - $ref: './hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelationInsert' + $ref: 'hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelationInsert' required: true responses: "201": @@ -54,10 +54,10 @@ post: content: 'application/json': schema: - $ref: './hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelation' + $ref: 'hs-office-relation-schemas.yaml#/components/schemas/HsOfficeRelation' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "409": - $ref: './error-responses.yaml#/components/responses/Conflict' + $ref: 'error-responses.yaml#/components/responses/Conflict' diff --git a/src/main/resources/api-definition/hs-office/hs-office-sepamandate-schemas.yaml b/src/main/resources/api-definition/hs-office/hs-office-sepamandate-schemas.yaml index dd2af7fd..80668ba8 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-sepamandate-schemas.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-sepamandate-schemas.yaml @@ -10,9 +10,9 @@ components: type: string format: uuid debitor: - $ref: './hs-office-debitor-schemas.yaml#/components/schemas/HsOfficeDebitor' + $ref: 'hs-office-debitor-schemas.yaml#/components/schemas/HsOfficeDebitor' bankAccount: - $ref: './hs-office-bankaccount-schemas.yaml#/components/schemas/HsOfficeBankAccount' + $ref: 'hs-office-bankaccount-schemas.yaml#/components/schemas/HsOfficeBankAccount' reference: type: string agreement: diff --git a/src/main/resources/api-definition/hs-office/hs-office-sepamandates-with-uuid.yaml b/src/main/resources/api-definition/hs-office/hs-office-sepamandates-with-uuid.yaml index 4e21a9a2..52d050ee 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-sepamandates-with-uuid.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-sepamandates-with-uuid.yaml @@ -4,8 +4,8 @@ get: description: 'Fetch a single SEPA Mandate by its uuid, if visible for the current subject.' operationId: getSepaMandateByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: sepaMandateUUID in: path required: true @@ -19,12 +19,12 @@ get: content: 'application/json': schema: - $ref: './hs-office-sepamandate-schemas.yaml#/components/schemas/HsOfficeSepaMandate' + $ref: 'hs-office-sepamandate-schemas.yaml#/components/schemas/HsOfficeSepaMandate' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' patch: tags: @@ -32,8 +32,8 @@ patch: description: 'Updates a single SEPA Mandate by its uuid, if permitted for the current subject.' operationId: patchSepaMandate parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: sepaMandateUUID in: path required: true @@ -44,18 +44,18 @@ patch: content: 'application/json': schema: - $ref: './hs-office-sepamandate-schemas.yaml#/components/schemas/HsOfficeSepaMandatePatch' + $ref: 'hs-office-sepamandate-schemas.yaml#/components/schemas/HsOfficeSepaMandatePatch' responses: "200": description: OK content: 'application/json': schema: - $ref: './hs-office-sepamandate-schemas.yaml#/components/schemas/HsOfficeSepaMandate' + $ref: 'hs-office-sepamandate-schemas.yaml#/components/schemas/HsOfficeSepaMandate' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' delete: tags: @@ -63,8 +63,8 @@ delete: description: 'Delete a single SEPA Mandate by its uuid, if permitted for the current subject.' operationId: deleteSepaMandateByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: sepaMandateUUID in: path required: true @@ -76,8 +76,8 @@ delete: "204": description: No Content "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "404": - $ref: './error-responses.yaml#/components/responses/NotFound' + $ref: 'error-responses.yaml#/components/responses/NotFound' diff --git a/src/main/resources/api-definition/hs-office/hs-office-sepamandates.yaml b/src/main/resources/api-definition/hs-office/hs-office-sepamandates.yaml index 08244629..82f8f154 100644 --- a/src/main/resources/api-definition/hs-office/hs-office-sepamandates.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office-sepamandates.yaml @@ -5,8 +5,8 @@ get: - hs-office-sepaMandates operationId: listSepaMandatesByIBAN parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: name in: query required: false @@ -21,11 +21,11 @@ get: schema: type: array items: - $ref: './hs-office-sepamandate-schemas.yaml#/components/schemas/HsOfficeSepaMandate' + $ref: 'hs-office-sepamandate-schemas.yaml#/components/schemas/HsOfficeSepaMandate' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' post: summary: Adds a new SEPA Mandate. @@ -33,25 +33,25 @@ post: - hs-office-sepaMandates operationId: addSepaMandate parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' requestBody: description: A JSON object describing the new SEPA-Mandate. required: true content: application/json: schema: - $ref: '/hs-office-sepamandate-schemas.yaml#/components/schemas/HsOfficeSepaMandateInsert' + $ref: 'hs-office-sepamandate-schemas.yaml#/components/schemas/HsOfficeSepaMandateInsert' responses: "201": description: Created content: 'application/json': schema: - $ref: './hs-office-sepamandate-schemas.yaml#/components/schemas/HsOfficeSepaMandate' + $ref: 'hs-office-sepamandate-schemas.yaml#/components/schemas/HsOfficeSepaMandate' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "409": - $ref: './error-responses.yaml#/components/responses/Conflict' + $ref: 'error-responses.yaml#/components/responses/Conflict' diff --git a/src/main/resources/api-definition/hs-office/hs-office.yaml b/src/main/resources/api-definition/hs-office/hs-office.yaml index 6265d98e..e8e7816d 100644 --- a/src/main/resources/api-definition/hs-office/hs-office.yaml +++ b/src/main/resources/api-definition/hs-office/hs-office.yaml @@ -11,87 +11,87 @@ paths: # Partners /api/hs/office/partners: - $ref: "./hs-office-partners.yaml" + $ref: "hs-office-partners.yaml" /api/hs/office/partners/{partnerUUID}: - $ref: "./hs-office-partners-with-uuid.yaml" + $ref: "hs-office-partners-with-uuid.yaml" # Contacts /api/hs/office/contacts: - $ref: "./hs-office-contacts.yaml" + $ref: "hs-office-contacts.yaml" /api/hs/office/contacts/{contactUUID}: - $ref: "./hs-office-contacts-with-uuid.yaml" + $ref: "hs-office-contacts-with-uuid.yaml" # Persons /api/hs/office/persons: - $ref: "./hs-office-persons.yaml" + $ref: "hs-office-persons.yaml" /api/hs/office/persons/{personUUID}: - $ref: "./hs-office-persons-with-uuid.yaml" + $ref: "hs-office-persons-with-uuid.yaml" # Relations /api/hs/office/relations: - $ref: "./hs-office-relations.yaml" + $ref: "hs-office-relations.yaml" /api/hs/office/relations/{relationUUID}: - $ref: "./hs-office-relations-with-uuid.yaml" + $ref: "hs-office-relations-with-uuid.yaml" # BankAccounts /api/hs/office/bankaccounts: - $ref: "./hs-office-bankaccounts.yaml" + $ref: "hs-office-bankaccounts.yaml" /api/hs/office/bankaccounts/{bankAccountUUID}: - $ref: "./hs-office-bankaccounts-with-uuid.yaml" + $ref: "hs-office-bankaccounts-with-uuid.yaml" # Debitors /api/hs/office/debitors: - $ref: "./hs-office-debitors.yaml" + $ref: "hs-office-debitors.yaml" /api/hs/office/debitors/{debitorUUID}: - $ref: "./hs-office-debitors-with-uuid.yaml" + $ref: "hs-office-debitors-with-uuid.yaml" # SepaMandates /api/hs/office/sepamandates: - $ref: "./hs-office-sepamandates.yaml" + $ref: "hs-office-sepamandates.yaml" /api/hs/office/sepamandates/{sepaMandateUUID}: - $ref: "./hs-office-sepamandates-with-uuid.yaml" + $ref: "hs-office-sepamandates-with-uuid.yaml" # Membership /api/hs/office/memberships: - $ref: "./hs-office-memberships.yaml" + $ref: "hs-office-memberships.yaml" /api/hs/office/memberships/{membershipUUID}: - $ref: "./hs-office-memberships-with-uuid.yaml" + $ref: "hs-office-memberships-with-uuid.yaml" # Coop Shares Transaction /api/hs/office/coopsharestransactions: - $ref: "./hs-office-coopshares.yaml" + $ref: "hs-office-coopshares.yaml" /api/hs/office/coopsharestransactions/{shareTransactionUUID}: - $ref: "./hs-office-coopshares-with-uuid.yaml" + $ref: "hs-office-coopshares-with-uuid.yaml" # Coop Assets Transaction /api/hs/office/coopassetstransactions: - $ref: "./hs-office-coopassets.yaml" + $ref: "hs-office-coopassets.yaml" /api/hs/office/coopassetstransactions/{assetTransactionUUID}: - $ref: "./hs-office-coopassets-with-uuid.yaml" + $ref: "hs-office-coopassets-with-uuid.yaml" diff --git a/src/main/resources/api-definition/rbac/rbac-grants-with-id.yaml b/src/main/resources/api-definition/rbac/rbac-grants-with-id.yaml index 11f3aceb..b45ebb4e 100644 --- a/src/main/resources/api-definition/rbac/rbac-grants-with-id.yaml +++ b/src/main/resources/api-definition/rbac/rbac-grants-with-id.yaml @@ -3,8 +3,8 @@ get: - rbac-grants operationId: getGrantById parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: grantedRoleUuid in: path required: true @@ -25,21 +25,21 @@ get: content: 'application/json': schema: - $ref: './rbac-grant-schemas.yaml#/components/schemas/RbacGrant' + $ref: 'rbac-grant-schemas.yaml#/components/schemas/RbacGrant' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "404": - $ref: './error-responses.yaml#/components/responses/NotFound' + $ref: 'error-responses.yaml#/components/responses/NotFound' delete: tags: - rbac-grants operationId: revokeRoleFromUser parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: grantedRoleUuid in: path required: true @@ -58,8 +58,8 @@ delete: "204": description: No Content "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "404": - $ref: './error-responses.yaml#/components/responses/NotFound' + $ref: 'error-responses.yaml#/components/responses/NotFound' diff --git a/src/main/resources/api-definition/rbac/rbac-grants.yaml b/src/main/resources/api-definition/rbac/rbac-grants.yaml index fd359a35..16011bcd 100644 --- a/src/main/resources/api-definition/rbac/rbac-grants.yaml +++ b/src/main/resources/api-definition/rbac/rbac-grants.yaml @@ -3,8 +3,8 @@ get: - rbac-grants operationId: listUserGrants parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' responses: "200": description: OK @@ -13,31 +13,31 @@ get: schema: type: array items: - $ref: './rbac-grant-schemas.yaml#/components/schemas/RbacGrant' + $ref: 'rbac-grant-schemas.yaml#/components/schemas/RbacGrant' post: tags: - rbac-grants operationId: grantRoleToUser parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' requestBody: required: true content: application/json: schema: - $ref: './rbac-grant-schemas.yaml#/components/schemas/RbacGrant' + $ref: 'rbac-grant-schemas.yaml#/components/schemas/RbacGrant' responses: "201": description: OK content: 'application/json': schema: - $ref: './rbac-grant-schemas.yaml#/components/schemas/RbacGrant' + $ref: 'rbac-grant-schemas.yaml#/components/schemas/RbacGrant' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "409": - $ref: './error-responses.yaml#/components/responses/Conflict' + $ref: 'error-responses.yaml#/components/responses/Conflict' diff --git a/src/main/resources/api-definition/rbac/rbac-roles.yaml b/src/main/resources/api-definition/rbac/rbac-roles.yaml index 8d139d6b..b97aa387 100644 --- a/src/main/resources/api-definition/rbac/rbac-roles.yaml +++ b/src/main/resources/api-definition/rbac/rbac-roles.yaml @@ -3,8 +3,8 @@ get: - rbac-roles operationId: listRoles parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' responses: "200": description: OK @@ -13,4 +13,4 @@ get: schema: type: array items: - $ref: './rbac-role-schemas.yaml#/components/schemas/RbacRole' + $ref: 'rbac-role-schemas.yaml#/components/schemas/RbacRole' diff --git a/src/main/resources/api-definition/rbac/rbac-users-with-id-permissions.yaml b/src/main/resources/api-definition/rbac/rbac-users-with-id-permissions.yaml index c8353a88..ba6eb3fe 100644 --- a/src/main/resources/api-definition/rbac/rbac-users-with-id-permissions.yaml +++ b/src/main/resources/api-definition/rbac/rbac-users-with-id-permissions.yaml @@ -4,8 +4,8 @@ get: description: 'List all visible permissions granted to the given user; reduced ' operationId: listUserPermissions parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: userUuid in: path required: true @@ -20,9 +20,9 @@ get: schema: type: array items: - $ref: './rbac-user-schemas.yaml#/components/schemas/RbacUserPermission' + $ref: 'rbac-user-schemas.yaml#/components/schemas/RbacUserPermission' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' diff --git a/src/main/resources/api-definition/rbac/rbac-users-with-uuid.yaml b/src/main/resources/api-definition/rbac/rbac-users-with-uuid.yaml index 52124ab9..058fc5cd 100644 --- a/src/main/resources/api-definition/rbac/rbac-users-with-uuid.yaml +++ b/src/main/resources/api-definition/rbac/rbac-users-with-uuid.yaml @@ -4,8 +4,8 @@ get: description: 'Fetch a single user by its id, if visible for the current subject.' operationId: getUserById parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: userUuid in: path required: true @@ -18,12 +18,12 @@ get: content: 'application/json': schema: - $ref: './rbac-user-schemas.yaml#/components/schemas/RbacUser' + $ref: 'rbac-user-schemas.yaml#/components/schemas/RbacUser' "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' delete: @@ -31,8 +31,8 @@ delete: - rbac-users operationId: deleteUserByUuid parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: userUuid in: path required: true @@ -44,8 +44,8 @@ delete: "204": description: No Content "401": - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' "403": - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' "404": - $ref: './error-responses.yaml#/components/responses/NotFound' + $ref: 'error-responses.yaml#/components/responses/NotFound' diff --git a/src/main/resources/api-definition/rbac/rbac-users.yaml b/src/main/resources/api-definition/rbac/rbac-users.yaml index 02f7d234..4acb729e 100644 --- a/src/main/resources/api-definition/rbac/rbac-users.yaml +++ b/src/main/resources/api-definition/rbac/rbac-users.yaml @@ -4,8 +4,8 @@ get: description: List accessible RBAC users with optional filter by name. operationId: listUsers parameters: - - $ref: './auth.yaml#/components/parameters/currentUser' - - $ref: './auth.yaml#/components/parameters/assumedRoles' + - $ref: 'auth.yaml#/components/parameters/currentUser' + - $ref: 'auth.yaml#/components/parameters/assumedRoles' - name: name in: query required: false @@ -19,11 +19,11 @@ get: schema: type: array items: - $ref: './rbac-user-schemas.yaml#/components/schemas/RbacUser' + $ref: 'rbac-user-schemas.yaml#/components/schemas/RbacUser' '401': - $ref: './error-responses.yaml#/components/responses/Unauthorized' + $ref: 'error-responses.yaml#/components/responses/Unauthorized' '403': - $ref: './error-responses.yaml#/components/responses/Forbidden' + $ref: 'error-responses.yaml#/components/responses/Forbidden' post: tags: @@ -35,14 +35,14 @@ post: content: application/json: schema: - $ref: './rbac-user-schemas.yaml#/components/schemas/RbacUser' + $ref: 'rbac-user-schemas.yaml#/components/schemas/RbacUser' responses: '201': description: Created content: 'application/json': schema: - $ref: './rbac-user-schemas.yaml#/components/schemas/RbacUser' + $ref: 'rbac-user-schemas.yaml#/components/schemas/RbacUser' '409': - $ref: './error-responses.yaml#/components/responses/Conflict' + $ref: 'error-responses.yaml#/components/responses/Conflict' diff --git a/src/main/resources/api-definition/rbac/rbac.yaml b/src/main/resources/api-definition/rbac/rbac.yaml index dc48fc05..ad6dfca4 100644 --- a/src/main/resources/api-definition/rbac/rbac.yaml +++ b/src/main/resources/api-definition/rbac/rbac.yaml @@ -9,20 +9,20 @@ servers: paths: /api/rbac/users: - $ref: './rbac-users.yaml' + $ref: 'rbac-users.yaml' /api/rbac/users/{userUuid}/permissions: - $ref: './rbac-users-with-id-permissions.yaml' + $ref: 'rbac-users-with-id-permissions.yaml' /api/rbac/users/{userUuid}: - $ref: './rbac-users-with-uuid.yaml' + $ref: 'rbac-users-with-uuid.yaml' /api/rbac/roles: - $ref: './rbac-roles.yaml' + $ref: 'rbac-roles.yaml' /api/rbac/grants: - $ref: './rbac-grants.yaml' + $ref: 'rbac-grants.yaml' /api/rbac/grants/{grantedRoleUuid}/{granteeUserUuid}: - $ref: './rbac-grants-with-id.yaml' + $ref: 'rbac-grants-with-id.yaml'