Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #103 from tiki/release/1.0.1
Browse files Browse the repository at this point in the history
fix: remove health check api
  • Loading branch information
mike-audi authored Apr 1, 2023
2 parents d31b1a4 + b333712 commit 2ee6fbe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 50 deletions.
33 changes: 1 addition & 32 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>com.mytiki</groupId>
<artifactId>l0_storage</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
<packaging>jar</packaging>

<name>L0 Storage</name>
Expand Down
18 changes: 1 addition & 17 deletions src/main/java/com/mytiki/l0_storage/health/HealthController.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2ee6fbe

Please sign in to comment.