From 83176efde39da6b380deee2c89aae0ead14ae89b Mon Sep 17 00:00:00 2001 From: Jonathan Cobb Date: Thu, 3 Dec 2020 17:53:07 -0500 Subject: [PATCH] rename upgrade api doc tag --- bubble-server/src/main/java/bubble/ApiConstants.java | 2 +- .../src/main/java/bubble/resources/account/MeResource.java | 4 ++-- .../src/main/resources/META-INF/bubble/openapi-tags.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bubble-server/src/main/java/bubble/ApiConstants.java b/bubble-server/src/main/java/bubble/ApiConstants.java index 726e7ccd..5b296dd4 100644 --- a/bubble-server/src/main/java/bubble/ApiConstants.java +++ b/bubble-server/src/main/java/bubble/ApiConstants.java @@ -310,7 +310,7 @@ public class ApiConstants { public static final String API_TAG_NODE_MANAGER = "Node Manager"; public static final String API_TAG_PAYMENT = "Payment"; public static final String API_TAG_SEARCH = "Search"; - public static final String API_TAG_UPGRADE = "Upgrades"; + public static final String API_TAG_UPGRADE_BUBBLE = "Upgrades"; public static String getToken(String json) { if (json == null) return null; diff --git a/bubble-server/src/main/java/bubble/resources/account/MeResource.java b/bubble-server/src/main/java/bubble/resources/account/MeResource.java index 70f3d1bd..fc8ecbf1 100644 --- a/bubble-server/src/main/java/bubble/resources/account/MeResource.java +++ b/bubble-server/src/main/java/bubble/resources/account/MeResource.java @@ -554,7 +554,7 @@ public class MeResource { @GET @Path(EP_UPGRADE) @Operation(security=@SecurityRequirement(name=SEC_API_KEY), - tags=API_TAG_UPGRADE, + tags=API_TAG_UPGRADE_BUBBLE, summary="Check for upgrade", description="Check for upgrade. Must be admin. The check runs in the background, this returns an empty JSON object", responses=@ApiResponse(responseCode=SC_OK, description="the upgrade check has been started", content=@Content(mediaType=APPLICATION_JSON, examples=@ExampleObject(name="empty JSON object", value="{}"))) @@ -577,7 +577,7 @@ public class MeResource { @POST @Path(EP_UPGRADE) @Operation(security=@SecurityRequirement(name=SEC_API_KEY), - tags=API_TAG_UPGRADE, + tags=API_TAG_UPGRADE_BUBBLE, summary="Upgrade Bubble", description="Upgrade Bubble. Must be admin. Starts the upgrade process.", responses=@ApiResponse(responseCode=SC_OK, description="the current public system configs") diff --git a/bubble-server/src/main/resources/META-INF/bubble/openapi-tags.json b/bubble-server/src/main/resources/META-INF/bubble/openapi-tags.json index 2bca2bfa..19dd2364 100644 --- a/bubble-server/src/main/resources/META-INF/bubble/openapi-tags.json +++ b/bubble-server/src/main/resources/META-INF/bubble/openapi-tags.json @@ -76,7 +76,7 @@ "description": "Search objects in the Bubble database." }, { - "name": "upgrades", + "name": "upgrade_bubble", "description": "Check for upgrades. Upgrade your Bubble." }, {