浏览代码

add id resource to api utility tag

tags/v1.5.4
Jonathan Cobb 4 年前
父节点
当前提交
b4ac2af2ae
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      bubble-server/src/main/java/bubble/resources/IdentityResource.java

+ 2
- 1
bubble-server/src/main/java/bubble/resources/IdentityResource.java 查看文件

@@ -33,6 +33,7 @@ import static bubble.ApiConstants.ID_ENDPOINT;
import static org.cobbzilla.util.http.HttpContentTypes.APPLICATION_JSON;
import static org.cobbzilla.util.http.HttpStatusCodes.SC_OK;
import static org.cobbzilla.wizard.resources.ResourceUtil.*;
import static org.cobbzilla.wizard.server.config.OpenApiConfiguration.API_TAG_UTILITY;
import static org.cobbzilla.wizard.server.config.OpenApiConfiguration.SEC_API_KEY;

@Consumes(APPLICATION_JSON)
@@ -49,7 +50,7 @@ public class IdentityResource {

@GET @Path("/{id}")
@Operation(security=@SecurityRequirement(name=SEC_API_KEY),
tags=API_TAG_BUBBLE_INFO,
tags={API_TAG_BUBBLE_INFO, API_TAG_UTILITY},
summary="Find what object(s) an ID belongs to. Useful when you have a UUID but don't know what kind of thing it refers to, if any.",
description="Searches all model objects by ID. The id parameter is typically a UUID or name",
parameters=@Parameter(name="id", description="an identifier (typically UUID or name) to search for", required=true),


正在加载...
取消
保存