From c1ede59f80ec7eb31d50ef984d34839ab63325b6 Mon Sep 17 00:00:00 2001 From: Daniel Hagan Date: Wed, 8 Apr 2026 01:32:08 +0000 Subject: [PATCH 1/6] Update for base_url and metadata --- loggingservice.yaml | 37 +++++++++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/loggingservice.yaml b/loggingservice.yaml index 98a4473..00cc46a 100644 --- a/loggingservice.yaml +++ b/loggingservice.yaml @@ -1,9 +1,15 @@ openapi: 3.0.1 info: title: Logging Service - version: "1.3.0" + version: "1.4.0" servers: + - url: "{base_url}/Logging/v1" + variables: + base_url: + default: localhost + description: Base URL for endpoint construction. - url: https://api.example.com/Logging/v1 + description: NENA-STA-010.3f-2021 legacy endpoint reference. paths: /LogEvents: get: @@ -68,7 +74,7 @@ paths: content: application/json: schema: - $ref: 'i3-common.yaml#/components/schemas/Jws' + $ref: 'https://raw.githubusercontent.com/dthvt/i3-common/refs/heads/metadata-example/i3-common.yaml#/components/schemas/Jws' required: true responses: '201': @@ -111,7 +117,7 @@ paths: content: application/json: schema: - $ref: 'i3-common.yaml#/components/schemas/Jws' + $ref: 'https://raw.githubusercontent.com/dthvt/i3-common/refs/heads/metadata-example/i3-common.yaml#/components/schemas/Jws' '404': description: Not found /Conversations: @@ -358,10 +364,29 @@ paths: description: Not found '454': description: Unspecified Error + /Metadata: + get: + tags: + - RetrieveMetadata + summary: Retrives service metadata. + operationId: RetrieveMetadata + responses: + '200': + description: Metadata Found + content: + application/json: + schema: + $ref: https://raw.githubusercontent.com/dthvt/i3-common/refs/heads/metadata-example/i3-common.yaml#/components/schemas/Metadata /Versions: servers: - - url: https://api.example.com/Logging + - url: "{base_url}/Logging" description: Override base path for Versions query + variables: + base_url: + default: localhost + description: Base URL for endpoint construction. + - url: https://api.example.com/Logging + description: NENA-STA-010.3f-2021 legacy endpoint reference. get: tags: - RetrieveVersions @@ -373,7 +398,7 @@ paths: content: application/json: schema: - $ref: 'i3-common.yaml#/components/schemas/VersionsArray' + $ref: 'https://raw.githubusercontent.com/dthvt/i3-common/refs/heads/metadata-example/i3-common.yaml#/components/schemas/Metadata' components: schemas: LogEventContainerArray: @@ -410,7 +435,7 @@ components: items: type: string logEvent: - $ref: 'i3-common.yaml#/components/schemas/Jws' + $ref: 'https://raw.githubusercontent.com/dthvt/i3-common/refs/heads/metadata-example/i3-common.yaml#/components/schemas/Jws' LogEventIdArray: type: object required: From e088daa5b15398c9007cf3d00798cc8725216ad3 Mon Sep 17 00:00:00 2001 From: Daniel Hagan Date: Wed, 8 Apr 2026 01:34:54 +0000 Subject: [PATCH 2/6] Corrected api.example.com to localhost. --- loggingservice.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loggingservice.yaml b/loggingservice.yaml index 00cc46a..755e871 100644 --- a/loggingservice.yaml +++ b/loggingservice.yaml @@ -8,7 +8,7 @@ servers: base_url: default: localhost description: Base URL for endpoint construction. - - url: https://api.example.com/Logging/v1 + - url: https://localhost/Logging/v1 description: NENA-STA-010.3f-2021 legacy endpoint reference. paths: /LogEvents: @@ -385,7 +385,7 @@ paths: base_url: default: localhost description: Base URL for endpoint construction. - - url: https://api.example.com/Logging + - url: https://localhost/Logging description: NENA-STA-010.3f-2021 legacy endpoint reference. get: tags: From 96c3aea1c15b5ceee94d28e4d532c7b25e52d389 Mon Sep 17 00:00:00 2001 From: Daniel Hagan Date: Wed, 8 Apr 2026 01:53:25 +0000 Subject: [PATCH 3/6] Move Metadata defintion to i3-common.yaml --- loggingservice.yaml | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/loggingservice.yaml b/loggingservice.yaml index 755e871..586471b 100644 --- a/loggingservice.yaml +++ b/loggingservice.yaml @@ -365,18 +365,7 @@ paths: '454': description: Unspecified Error /Metadata: - get: - tags: - - RetrieveMetadata - summary: Retrives service metadata. - operationId: RetrieveMetadata - responses: - '200': - description: Metadata Found - content: - application/json: - schema: - $ref: https://raw.githubusercontent.com/dthvt/i3-common/refs/heads/metadata-example/i3-common.yaml#/components/schemas/Metadata + $ref: 'https://raw.githubusercontent.com/dthvt/i3-common/refs/heads/metadata-example/i3-common.yaml#/Metadata' /Versions: servers: - url: "{base_url}/Logging" @@ -387,18 +376,7 @@ paths: description: Base URL for endpoint construction. - url: https://localhost/Logging description: NENA-STA-010.3f-2021 legacy endpoint reference. - get: - tags: - - RetrieveVersions - summary: Retrieves all supported versions, vendor parameter is optional. - operationId: RetrieveVersions - responses: - '200': - description: Versions found - content: - application/json: - schema: - $ref: 'https://raw.githubusercontent.com/dthvt/i3-common/refs/heads/metadata-example/i3-common.yaml#/components/schemas/Metadata' + $ref: 'https://raw.githubusercontent.com/dthvt/i3-common/refs/heads/metadata-example/i3-common.yaml#/Metadata' components: schemas: LogEventContainerArray: From e2beb051eb3dcb55dce4139ea7178059ab0647e0 Mon Sep 17 00:00:00 2001 From: Daniel Hagan Date: Wed, 8 Apr 2026 01:56:25 +0000 Subject: [PATCH 4/6] Undo Versions redirect to common Metadata --- loggingservice.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/loggingservice.yaml b/loggingservice.yaml index 586471b..aa8dd59 100644 --- a/loggingservice.yaml +++ b/loggingservice.yaml @@ -376,7 +376,18 @@ paths: description: Base URL for endpoint construction. - url: https://localhost/Logging description: NENA-STA-010.3f-2021 legacy endpoint reference. - $ref: 'https://raw.githubusercontent.com/dthvt/i3-common/refs/heads/metadata-example/i3-common.yaml#/Metadata' + get: + tags: + - RetrieveVersions + summary: Retrieves all supported versions, vendor parameter is optional. + operationId: RetrieveVersions + responses: + '200': + description: Versions found + content: + application/json: + schema: + $ref: 'https://raw.githubusercontent.com/dthvt/i3-common/refs/heads/metadata-example/i3-common.yaml#/components/schemas/Metadata' components: schemas: LogEventContainerArray: From c4bfb029efbeaf945f91397b94116baca50c5deb Mon Sep 17 00:00:00 2001 From: Daniel Hagan Date: Thu, 16 Apr 2026 01:56:00 +0000 Subject: [PATCH 5/6] Update base_url and remove localhost. --- loggingservice.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/loggingservice.yaml b/loggingservice.yaml index aa8dd59..a26eb76 100644 --- a/loggingservice.yaml +++ b/loggingservice.yaml @@ -3,13 +3,11 @@ info: title: Logging Service version: "1.4.0" servers: - - url: "{base_url}/Logging/v1" + - url: "{base_url}/v1" variables: base_url: default: localhost description: Base URL for endpoint construction. - - url: https://localhost/Logging/v1 - description: NENA-STA-010.3f-2021 legacy endpoint reference. paths: /LogEvents: get: @@ -368,14 +366,12 @@ paths: $ref: 'https://raw.githubusercontent.com/dthvt/i3-common/refs/heads/metadata-example/i3-common.yaml#/Metadata' /Versions: servers: - - url: "{base_url}/Logging" + - url: "{base_url}/" description: Override base path for Versions query variables: base_url: default: localhost description: Base URL for endpoint construction. - - url: https://localhost/Logging - description: NENA-STA-010.3f-2021 legacy endpoint reference. get: tags: - RetrieveVersions From 00ba90dff86aefd5bd3c0bda2729be978026b240 Mon Sep 17 00:00:00 2001 From: Daniel Hagan Date: Thu, 16 Apr 2026 01:59:42 +0000 Subject: [PATCH 6/6] Update base_url defaults. --- loggingservice.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loggingservice.yaml b/loggingservice.yaml index a26eb76..1cc7a5a 100644 --- a/loggingservice.yaml +++ b/loggingservice.yaml @@ -6,7 +6,7 @@ servers: - url: "{base_url}/v1" variables: base_url: - default: localhost + default: https://localhost/Logging description: Base URL for endpoint construction. paths: /LogEvents: @@ -370,7 +370,7 @@ paths: description: Override base path for Versions query variables: base_url: - default: localhost + default: https://localhost/Logging description: Base URL for endpoint construction. get: tags: