From 81ab786dd8ec44ccf43c55bdf3ed460485916fe9 Mon Sep 17 00:00:00 2001 From: Giacomo Bernini Date: Fri, 5 Feb 2021 15:50:21 +0100 Subject: [PATCH] fixed issue #4 in 2.6.1 --- src/SOL005/endpoints/SOL005_endpoints.yaml | 27 ++++++++++++++++++++-- src/SOL005/responses/SOL005_resp.yaml | 2 ++ 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/src/SOL005/endpoints/SOL005_endpoints.yaml b/src/SOL005/endpoints/SOL005_endpoints.yaml index b5ee389..58c808d 100644 --- a/src/SOL005/endpoints/SOL005_endpoints.yaml +++ b/src/SOL005/endpoints/SOL005_endpoints.yaml @@ -38,7 +38,6 @@ endpoints: 401: { $ref: '../responses/SOL005_resp.yaml#/responses/401' } 403: { $ref: '../responses/SOL005_resp.yaml#/responses/403' } 404: { $ref: '../responses/SOL005_resp.yaml#/responses/404' } - 405: { $ref: '../responses/SOL005_resp.yaml#/responses/405' } 406: { $ref: '../responses/SOL005_resp.yaml#/responses/406' } 413: { $ref: '../responses/SOL005_resp.yaml#/responses/413' } 414: { $ref: '../responses/SOL005_resp.yaml#/responses/414' } @@ -47,4 +46,28 @@ endpoints: 429: { $ref: '../responses/SOL005_resp.yaml#/responses/429' } 500: { $ref: '../responses/SOL005_resp.yaml#/responses/500' } 503: { $ref: '../responses/SOL005_resp.yaml#/responses/503' } - 504: { $ref: '../responses/SOL005_resp.yaml#/responses/504' } \ No newline at end of file + 504: { $ref: '../responses/SOL005_resp.yaml#/responses/504' } + post: + description: > + This method is not supported. When this method is requested on this resource, the API producer shall + return a "405 Method Not Allowed" response + responses: + 405: { $ref: '../responses/SOL005_resp.yaml#/responses/405' } + put: + description: > + This method is not supported. When this method is requested on this resource, the API producer shall + return a "405 Method Not Allowed" response + responses: + 405: { $ref: '../responses/SOL005_resp.yaml#/responses/405' } + patch: + description: > + This method is not supported. When this method is requested on this resource, the API producer shall + return a "405 Method Not Allowed" response + responses: + 405: { $ref: '../responses/SOL005_resp.yaml#/responses/405' } + delete: + description: > + This method is not supported. When this method is requested on this resource, the API producer shall + return a "405 Method Not Allowed" response + responses: + 405: { $ref: '../responses/SOL005_resp.yaml#/responses/405' } \ No newline at end of file diff --git a/src/SOL005/responses/SOL005_resp.yaml b/src/SOL005/responses/SOL005_resp.yaml index 2d898dc..78594bd 100644 --- a/src/SOL005/responses/SOL005_resp.yaml +++ b/src/SOL005/responses/SOL005_resp.yaml @@ -267,6 +267,8 @@ responses: minimum: 1 schema: $ref: "../definitions/SOL005_def.yaml#/definitions/ProblemDetails" + maximum: 1 + minimum: 0 406: description: > -- GitLab