From a2654da9277b4dfb035a7ecb2dc9efb4b6fcce7c Mon Sep 17 00:00:00 2001 From: Jonas De Meulenaere Date: Tue, 26 Mar 2024 10:04:30 +0100 Subject: [PATCH 1/2] Draft for Etag --- src/main/openapi/common/v1/common-v1.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/openapi/common/v1/common-v1.yaml b/src/main/openapi/common/v1/common-v1.yaml index 22b5f6a..d8b71a3 100644 --- a/src/main/openapi/common/v1/common-v1.yaml +++ b/src/main/openapi/common/v1/common-v1.yaml @@ -167,3 +167,14 @@ components: type: string required: - status + headers: + Etag: + description: > + Identifier for a specific version of a resource. + The RFC7232 ETag header field in a response provides the current entity- + tag for the selected resource. An entity-tag is an opaque identifier for + different versions of a resource over time, regardless whether multiple + versions are valid at the same time. An entity-tag consists of an opaque + quoted string, possibly prefixed by a weakness indicator. + schema: + type: string From bdeb896b2803deb2f771b3c0ff864b24f580209d Mon Sep 17 00:00:00 2001 From: Jonas De Meulenaere Date: Tue, 26 Mar 2024 11:40:12 +0100 Subject: [PATCH 2/2] Add If-None-Match --- src/main/openapi/common/v1/common-v1.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/openapi/common/v1/common-v1.yaml b/src/main/openapi/common/v1/common-v1.yaml index d8b71a3..a656bd0 100644 --- a/src/main/openapi/common/v1/common-v1.yaml +++ b/src/main/openapi/common/v1/common-v1.yaml @@ -43,6 +43,13 @@ components: name: select schema: type: string + IfNoneMatch: + description: RFC7232 header field that makes a GET or HEAD request method conditional. + in: header + name: If-None-Match + schema: + type: string + example: W/"xy", "5", "7da7a728-f910-11e6-942a-68f728c1ba70" responses: HealthUpOrDegradedResponse: description: The service is UP or DEGRADED