@Path(value="/ibmcompat") @Counted(name="rest_request_count", description="Total number of REST requests.", tags={"group=REST","metric=rest_request_count"}) @ConcurrentGauge(name="concurrent_request_count", description="Number of concurrent REST requests.", tags={"group=REST","metric=concurrent_request_count"}) @Timed(name="rest_response_time", description="Time of a request-response interval.", tags={"group=REST","metric=rest_response_time"}, unit="milliseconds") public class Api extends Object
Constructor and Description |
---|
Api() |
Modifier and Type | Method and Description |
---|---|
List<SchemaListItem> |
apiSchemasGet(@Min(value=0L) int page,
@Min(value=1L) int perPage) |
void |
apiSchemasPost(javax.ws.rs.container.AsyncResponse response,
@NotNull @Valid NewSchema schema,
boolean verify,
javax.ws.rs.core.SecurityContext securityContext) |
javax.ws.rs.core.Response |
apiSchemasSchemaidDelete(String schemaid) |
SchemaInfo |
apiSchemasSchemaidGet(String schemaid) |
javax.ws.rs.core.Response |
apiSchemasSchemaidPatch(String schemaid,
@NotNull @Valid List<AnyOfStateModificationEnabledModification> anyOfStateModificationEnabledModification) |
void |
apiSchemasSchemaidVersionsPost(javax.ws.rs.container.AsyncResponse response,
@NotNull String schemaid,
@NotNull @Valid NewSchemaVersion schema,
boolean verify) |
javax.ws.rs.core.Response |
apiSchemasSchemaidVersionsVersionnumDelete(String schemaid,
int versionnum) |
Schema |
apiSchemasSchemaidVersionsVersionnumGet(String schemaid,
int versionnum) |
javax.ws.rs.core.Response |
apiSchemasSchemaidVersionsVersionnumPatch(String schemaid,
int versionnum,
@NotNull @Valid List<AnyOfStateModificationEnabledModification> anyOfStateModificationEnabledModification) |
@GET @Path(value="/schemas") @Produces(value="application/json") public List<SchemaListItem> apiSchemasGet(@Min(value=0L) @DefaultValue(value="0") @QueryParam(value="page") @Min(value=0L) int page, @Min(value=1L) @DefaultValue(value="100") @QueryParam(value="per_page") @Min(value=1L) int perPage) throws ArtifactNotFoundException
ArtifactNotFoundException
@POST @Path(value="/schemas") @Consumes(value="application/json") @Produces(value="application/json") public void apiSchemasPost(@Suspended javax.ws.rs.container.AsyncResponse response, @NotNull @Valid @NotNull @Valid NewSchema schema, @DefaultValue(value="false") @QueryParam(value="verify") boolean verify, @Context javax.ws.rs.core.SecurityContext securityContext) throws ArtifactNotFoundException
ArtifactNotFoundException
@DELETE @Path(value="/schemas/{schemaid}") @Produces(value="application/json") public javax.ws.rs.core.Response apiSchemasSchemaidDelete(@PathParam(value="schemaid") String schemaid) throws ArtifactNotFoundException
ArtifactNotFoundException
@GET @Path(value="/schemas/{schemaid}") @Produces(value="application/json") public SchemaInfo apiSchemasSchemaidGet(@PathParam(value="schemaid") String schemaid) throws ArtifactNotFoundException
ArtifactNotFoundException
@PATCH @Path(value="/schemas/{schemaid}") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response apiSchemasSchemaidPatch(@PathParam(value="schemaid") String schemaid, @NotNull @Valid @NotNull @Valid List<AnyOfStateModificationEnabledModification> anyOfStateModificationEnabledModification) throws ArtifactNotFoundException
ArtifactNotFoundException
@POST @Path(value="/schemas/{schemaid}/versions") @Consumes(value="application/json") @Produces(value="application/json") public void apiSchemasSchemaidVersionsPost(@Suspended javax.ws.rs.container.AsyncResponse response, @PathParam(value="schemaid") @NotNull @NotNull String schemaid, @NotNull @Valid @NotNull @Valid NewSchemaVersion schema, @DefaultValue(value="false") @QueryParam(value="verify") boolean verify) throws ArtifactNotFoundException
ArtifactNotFoundException
@DELETE @Path(value="/schemas/{schemaid}/versions/{versionnum}") @Produces(value="application/json") public javax.ws.rs.core.Response apiSchemasSchemaidVersionsVersionnumDelete(@PathParam(value="schemaid") String schemaid, @PathParam(value="versionnum") int versionnum) throws ArtifactNotFoundException
ArtifactNotFoundException
@GET @Path(value="/schemas/{schemaid}/versions/{versionnum}") @Produces(value={"application/json","application/vnd.apache.avro+json"}) public Schema apiSchemasSchemaidVersionsVersionnumGet(@PathParam(value="schemaid") String schemaid, @PathParam(value="versionnum") int versionnum) throws ArtifactNotFoundException
ArtifactNotFoundException
@PATCH @Path(value="/schemas/{schemaid}/versions/{versionnum}") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response apiSchemasSchemaidVersionsVersionnumPatch(@PathParam(value="schemaid") String schemaid, @PathParam(value="versionnum") int versionnum, @NotNull @Valid @NotNull @Valid List<AnyOfStateModificationEnabledModification> anyOfStateModificationEnabledModification) throws ArtifactNotFoundException
ArtifactNotFoundException
Copyright © 2020 Red Hat. All rights reserved.