本文整理了Java中org.eclipse.microprofile.openapi.annotations.Operation.<init>()
方法的一些代码示例,展示了Operation.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Operation.<init>()
方法的具体详情如下:
包路径:org.eclipse.microprofile.openapi.annotations.Operation
类名称:Operation
方法名:<init>
暂无
代码示例来源:origin: org.microprofile-ext.openapi-ext/swagger-ui
@GET
@Produces("image/png")
@Path("favicon-{size}.png")
@Operation(hidden = true)
public byte[] getFavicon(@PathParam("size") int size){
return templates.getFavicon(size);
}
代码示例来源:origin: org.microprofile-ext.openapi-ext/swagger-ui
@GET
@Produces("text/css")
@Path("style.css")
@Operation(hidden = true)
public Response getCss(){
String css = templates.getStyle();
return Response.ok(css, "text/css").build();
}
代码示例来源:origin: com.github.phillip-kruger.microprofile-extensions/openapi-ext
@GET
@Produces("image/png")
@Path("logo.png")
@Operation(hidden = true)
public byte[] getLogo(){
return templates.getOriginalLogo();
}
代码示例来源:origin: com.github.phillip-kruger.microprofile-extentions/openapi-ext
@GET
@Produces("image/png")
@Path("favicon-{size}.png")
@Operation(hidden = true)
public byte[] getFavicon(@PathParam("size") int size){
return templates.getFavicon(size);
}
代码示例来源:origin: com.github.phillip-kruger.microprofile-extensions/openapi-ext
@GET
@Produces(MediaType.TEXT_HTML)
@Path(INDEX_HTML)
@Operation(hidden = true)
public Response getOpenApiUI(){
String swaggerUI = templates.getSwaggerUIHtml(uriInfo,request);
return Response.ok(swaggerUI, MediaType.TEXT_HTML).build();
}
代码示例来源:origin: com.github.phillip-kruger.microprofile-extentions/openapi-ext
@GET
@Produces(MediaType.TEXT_HTML)
@Path(INDEX_HTML)
@Operation(hidden = true)
public Response getOpenApiUI(){
String swaggerUI = templates.getSwaggerUIHtml(uriInfo,request);
return Response.ok(swaggerUI, MediaType.TEXT_HTML).build();
}
代码示例来源:origin: com.github.phillip-kruger.microprofile-extentions/openapi-ext
@GET
@Produces("text/css")
@Path("style.css")
@Operation(hidden = true)
public Response getCss(){
String css = templates.getStyle();
return Response.ok(css, "text/css").build();
}
代码示例来源:origin: org.eclipse.microprofile.openapi/microprofile-openapi-tck
@GET
@Path("/logout")
@APIResponse(
description = "successful operation"
)
@Operation(
summary = "Logs out current logged in user session"
)
public Response logoutUser() {
return Response.ok().entity("").build();
}
}
代码示例来源:origin: org.microprofile-ext.openapi-ext/swagger-ui
@GET
@Produces("image/png")
@Path("logo.png")
@Operation(hidden = true)
public byte[] getLogo(){
return templates.getOriginalLogo();
}
代码示例来源:origin: org.microprofile-ext.openapi-ext/swagger-ui
@GET
@Produces(MediaType.TEXT_HTML)
@Path(INDEX_HTML)
@Operation(hidden = true)
public Response getOpenApiUI(){
String swaggerUI = templates.getSwaggerUIHtml(uriInfo,request);
return Response.ok(swaggerUI, MediaType.TEXT_HTML).build();
}
代码示例来源:origin: com.github.phillip-kruger.microprofile-extensions/openapi-ext
@GET
@Produces("text/css")
@Path("style.css")
@Operation(hidden = true)
public Response getCss(){
String css = templates.getStyle();
return Response.ok(css, "text/css").build();
}
代码示例来源:origin: com.github.phillip-kruger.microprofile-extentions/openapi-ext
@GET
@Produces("image/png")
@Path("logo.png")
@Operation(hidden = true)
public byte[] getLogo(){
return templates.getOriginalLogo();
}
代码示例来源:origin: org.microprofile-ext.config-ext/configsource-memory
@GET
@Path("/source/{name}")
@Produces(MediaType.APPLICATION_JSON)
@Operation(description = "Getting the config source with a certain name")
@APIResponse(responseCode = "200", description = "Successful, returning the config source in JSON format")
public Response getConfigSource(@Parameter(name = "name", description = "The name for this config source", required = true, allowEmptyValue = false, example = "MemoryConfigSource")
@PathParam("name") String name){
if(!enabled)return Response.status(Response.Status.FORBIDDEN).header(REASON, NOT_ENABLED).build();
if(!configSourceMap.containsKey(name))return Response.noContent().header(REASON, NO_SUCH_CONFIGSOURCE).build();
ConfigSource source = configSourceMap.get(name);
return Response.ok(toJsonObject(source)).build();
}
代码示例来源:origin: com.github.phillip-kruger.microprofile-extensions/openapi-ext
@GET
@Produces(MediaType.TEXT_HTML)
@Operation(hidden = true)
public Response getSwaggerUINaked(){
URI fw = uriInfo.getRequestUriBuilder().path(INDEX_HTML).build();
return Response.temporaryRedirect(fw).build();
}
代码示例来源:origin: org.talend.sdk.component/component-server-api
@GET
@Operation(
description = "Returns the environment of this instance. Useful to check the version or configure a healthcheck for the server.")
@APIResponse(responseCode = "200", description = "Current environment representation.",
content = @Content(mediaType = APPLICATION_JSON))
Environment get();
}
代码示例来源:origin: com.github.phillip-kruger.microprofile-extentions/config-ext
@DELETE
@Path("/key/{key}")
@Operation(description = "Remove the value in the Memory config source")
@APIResponse(responseCode = "202", description = "Accepted the key, value removed")
public Response removeValue(@NotNull
@Parameter(name = "key", description = "The key for this config", required = true, allowEmptyValue = false, example = "some.key")
@PathParam("key") String key) {
memoryConfigSource.getProperties().remove(key);
return Response.accepted().build();
}
代码示例来源:origin: com.github.phillip-kruger.microprofile-extentions/config-ext
@PUT
@Path("/key/{key}")
@Operation(description = "Change or add a new key")
@APIResponse(responseCode = "202", description = "Accepted the key, value updated")
@Consumes(MediaType.TEXT_PLAIN)
public Response setValue(@NotNull
@Parameter(name = "key", description = "The key for this config", required = true, allowEmptyValue = false, example = "some.key")
@PathParam("key") String key,
@RequestBody(description = "Value for this key") String value) {
memoryConfigSource.getProperties().put(key, value);
return Response.accepted().build();
}
代码示例来源:origin: org.talend.sdk.component/component-server-api
@GET
@Path("index")
@Operation(description = "Returns the list of available components.")
@APIResponse(responseCode = "200", description = "The index of available components.",
content = @Content(mediaType = APPLICATION_OCTET_STREAM))
ComponentIndices getIndex(
@QueryParam("language") @DefaultValue("en") @Parameter(name = "language",
description = "the language for display names.", in = QUERY,
schema = @Schema(type = STRING, defaultValue = "en")) String language,
@QueryParam("includeIconContent") @DefaultValue("false") @Parameter(name = "includeIconContent",
description = "should the icon binary format be included in the payload.", in = QUERY,
schema = @Schema(type = STRING, defaultValue = "en")) boolean includeIconContent);
代码示例来源:origin: org.talend.sdk.component/component-server-api
@GET
@Path("icon/{id}")
@Produces({ APPLICATION_JSON, APPLICATION_OCTET_STREAM })
@Operation(description = "Returns a particular component icon in raw bytes.")
@APIResponse(responseCode = "200", description = "The component icon in binary form.",
content = @Content(mediaType = APPLICATION_OCTET_STREAM))
@APIResponse(responseCode = "404", description = "The family or icon is not found",
content = @Content(mediaType = APPLICATION_JSON))
Response icon(@PathParam("id") @Parameter(name = "id", description = "the component icon identifier",
in = PATH) String id);
代码示例来源:origin: org.talend.sdk.component/component-server-api
@GET
@Path("icon/family/{id}")
@Produces({ APPLICATION_JSON, APPLICATION_OCTET_STREAM })
@Operation(description = "Returns the icon for a family.")
@APIResponse(responseCode = "200", description = "Returns a particular family icon in raw bytes.",
content = @Content(mediaType = APPLICATION_OCTET_STREAM))
@APIResponse(responseCode = "404", description = "The family or icon is not found",
content = @Content(mediaType = APPLICATION_JSON,
schema = @Schema(type = OBJECT, implementation = ErrorPayload.class)))
Response familyIcon(
@PathParam("id") @Parameter(name = "id", description = "the family identifier", in = PATH) String id);
内容来源于网络,如有侵权,请联系作者删除!