diff --git a/_http/.env.example b/_http/.env.example index c1aa10e..8935f4f 100644 --- a/_http/.env.example +++ b/_http/.env.example @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 PNED G.I.E. +# +# SPDX-License-Identifier: Apache-2.0 + KEYCLOAK_HOST=https://keycloak-test.healthdata.nl KEYCLOAK_REALM=ckan KEYCLOAK_PROVIDER_ALIAS=LSAAI diff --git a/src/main/openapi/beacon.yaml b/src/main/openapi/beacon.yaml index f24961b..de7fd85 100644 --- a/src/main/openapi/beacon.yaml +++ b/src/main/openapi/beacon.yaml @@ -14,6 +14,13 @@ paths: post: summary: Searches for individuals based on criteria operationId: list_individuals + parameters: + - name: Authorization + in: header + description: The authorization header + required: true + schema: + type: string tags: - "beacon-query" requestBody: @@ -28,6 +35,8 @@ paths: application/json: schema: $ref: "#/components/schemas/BeaconIndividualsResponse" + "401": + description: "Unauthorized" security: - beacon_auth: - read:beacon @@ -37,6 +46,13 @@ paths: operationId: list_filtering_terms tags: - "beacon-query" + parameters: + - name: Authorization + in: header + description: The authorization header + required: true + schema: + type: string responses: "200": description: A list of filtering terms @@ -44,6 +60,8 @@ paths: application/json: schema: $ref: "#/components/schemas/BeaconFilteringTermsResponse" + "401": + description: "Unauthorized" security: - beacon_auth: - read:beacon diff --git a/src/main/openapi/ckan.yaml b/src/main/openapi/ckan.yaml index 77ef3f2..0b9062d 100644 --- a/src/main/openapi/ckan.yaml +++ b/src/main/openapi/ckan.yaml @@ -60,6 +60,12 @@ paths: required: false schema: type: string + - name: Authorization + in: header + description: The authorization header + required: false + schema: + type: string responses: "200": description: A list of packages matching the search criteria @@ -80,6 +86,12 @@ paths: required: true schema: type: string + - name: Authorization + in: header + description: The authorization header + required: false + schema: + type: string responses: "200": description: The package with the specified ID