From 801da04e475d1627eb55e36f3d5ff253c5b80f1c Mon Sep 17 00:00:00 2001 From: Mike Audi Date: Sat, 1 Apr 2023 02:56:09 -0500 Subject: [PATCH 1/2] fix: remove health check api --- .../l0_storage/health/HealthController.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/main/java/com/mytiki/l0_storage/health/HealthController.java b/src/main/java/com/mytiki/l0_storage/health/HealthController.java index 87eaac6..f9f2324 100644 --- a/src/main/java/com/mytiki/l0_storage/health/HealthController.java +++ b/src/main/java/com/mytiki/l0_storage/health/HealthController.java @@ -5,34 +5,18 @@ package com.mytiki.l0_storage.health; -import com.mytiki.l0_storage.utilities.Constants; import com.mytiki.spring_rest_api.ApiConstants; import com.mytiki.spring_rest_api.ApiError; import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.media.Content; -import io.swagger.v3.oas.annotations.media.ExampleObject; -import io.swagger.v3.oas.annotations.media.Schema; -import io.swagger.v3.oas.annotations.responses.ApiResponse; -import io.swagger.v3.oas.annotations.tags.Tag; -import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; -@Tag(name = "HEALTH") @RestController @RequestMapping(value = ApiConstants.HEALTH_ROUTE) public class HealthController { - @Operation(operationId = Constants.PROJECT_DASH_PATH + "-health-get", - summary = "Health Check", description = "Get service status") - @ApiResponse( - responseCode = "200", - content = @Content( - mediaType = MediaType.APPLICATION_JSON_VALUE, - schema = @Schema(implementation = ApiError.class), - examples = @ExampleObject(value = "{\"message\":\"OK\"}") - )) + @Operation(hidden = true) @RequestMapping(method = RequestMethod.GET) public ApiError get(){ ApiError rsp = new ApiError(); From b33371203cecc9f11e92072f90a44b3f7b113647 Mon Sep 17 00:00:00 2001 From: GH Action Date: Sat, 1 Apr 2023 07:57:48 +0000 Subject: [PATCH 2/2] version bump --- openapi.yaml | 33 +-------------------------------- pom.xml | 2 +- 2 files changed, 2 insertions(+), 33 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index c25861f..2194fa9 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -5,7 +5,7 @@ info: license: name: MIT url: https://github.com/tiki/l0-storage/blob/main/LICENSE - version: 1.0.0 + version: 1.0.1 servers: - url: https://storage.l0.mytiki.com paths: @@ -53,22 +53,6 @@ paths: $ref: '#/components/schemas/TokenAORsp' security: - oauth: [] - /health: - get: - tags: - - HEALTH - summary: Health Check - description: Get service status - operationId: l0-storage-health-get - responses: - "200": - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/ApiError' - example: - message: OK components: schemas: TokenAOReq: @@ -92,21 +76,6 @@ components: format: date-time urnPrefix: type: string - ApiError: - type: object - properties: - id: - type: string - message: - type: string - detail: - type: string - help: - type: string - properties: - type: object - additionalProperties: - type: string securitySchemes: oauth: type: oauth2 diff --git a/pom.xml b/pom.xml index 381ad36..09b1e69 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ com.mytiki l0_storage - 1.0.0 + 1.0.1 jar L0 Storage