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
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();