Class Api
- java.lang.Object
-
- io.apicurio.registry.ibmcompat.api.Api
-
@Path("/apis/ibmcompat/v1") @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 Summary
Constructors Constructor Description Api()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SchemaListItem>
apiSchemasGet(@javax.validation.constraints.Min(0L) int page, @javax.validation.constraints.Min(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<SchemaModificationPatch> schemaModificationPatches)
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<SchemaModificationPatch> schemaModificationPatches)
-
-
-
Method Detail
-
apiSchemasGet
@GET @Path("/schemas") @Produces("application/json") public List<SchemaListItem> apiSchemasGet(@Min(0L) @DefaultValue("0") @QueryParam("page") @javax.validation.constraints.Min(0L) int page, @Min(1L) @DefaultValue("100") @QueryParam("per_page") @javax.validation.constraints.Min(1L) int perPage) throws ArtifactNotFoundException
- Throws:
ArtifactNotFoundException
-
apiSchemasPost
@POST @Path("/schemas") @Consumes("application/json") @Produces("application/json") public void apiSchemasPost(@Suspended javax.ws.rs.container.AsyncResponse response, @NotNull @Valid @NotNull @Valid NewSchema schema, @DefaultValue("false") @QueryParam("verify") boolean verify, @Context javax.ws.rs.core.SecurityContext securityContext) throws ArtifactNotFoundException, ArtifactAlreadyExistsException
-
apiSchemasSchemaidDelete
@DELETE @Path("/schemas/{schemaid}") @Produces("application/json") public javax.ws.rs.core.Response apiSchemasSchemaidDelete(@PathParam("schemaid") String schemaid) throws ArtifactNotFoundException
- Throws:
ArtifactNotFoundException
-
apiSchemasSchemaidGet
@GET @Path("/schemas/{schemaid}") @Produces("application/json") public SchemaInfo apiSchemasSchemaidGet(@PathParam("schemaid") String schemaid) throws ArtifactNotFoundException
- Throws:
ArtifactNotFoundException
-
apiSchemasSchemaidPatch
@PATCH @Path("/schemas/{schemaid}") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response apiSchemasSchemaidPatch(@PathParam("schemaid") String schemaid, @NotNull @Valid @NotNull @Valid List<SchemaModificationPatch> schemaModificationPatches) throws ArtifactNotFoundException
- Throws:
ArtifactNotFoundException
-
apiSchemasSchemaidVersionsPost
@POST @Path("/schemas/{schemaid}/versions") @Consumes("application/json") @Produces("application/json") public void apiSchemasSchemaidVersionsPost(@Suspended javax.ws.rs.container.AsyncResponse response, @PathParam("schemaid") @NotNull @NotNull String schemaid, @NotNull @Valid @NotNull @Valid NewSchemaVersion schema, @DefaultValue("false") @QueryParam("verify") boolean verify) throws ArtifactNotFoundException, ArtifactAlreadyExistsException
-
apiSchemasSchemaidVersionsVersionnumDelete
@DELETE @Path("/schemas/{schemaid}/versions/{versionnum}") @Produces("application/json") public javax.ws.rs.core.Response apiSchemasSchemaidVersionsVersionnumDelete(@PathParam("schemaid") String schemaid, @PathParam("versionnum") int versionnum) throws ArtifactNotFoundException
- Throws:
ArtifactNotFoundException
-
apiSchemasSchemaidVersionsVersionnumGet
@GET @Path("/schemas/{schemaid}/versions/{versionnum}") @Produces({"application/json","application/vnd.apache.avro+json"}) public Schema apiSchemasSchemaidVersionsVersionnumGet(@PathParam("schemaid") String schemaid, @PathParam("versionnum") int versionnum) throws ArtifactNotFoundException
- Throws:
ArtifactNotFoundException
-
apiSchemasSchemaidVersionsVersionnumPatch
@PATCH @Path("/schemas/{schemaid}/versions/{versionnum}") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response apiSchemasSchemaidVersionsVersionnumPatch(@PathParam("schemaid") String schemaid, @PathParam("versionnum") int versionnum, @NotNull @Valid @NotNull @Valid List<SchemaModificationPatch> schemaModificationPatches) throws ArtifactNotFoundException
- Throws:
ArtifactNotFoundException
-
-