Class Api
- java.lang.Object
-
- io.apicurio.registry.ibmcompat.api.Api
-
@Path("/apis/ibmcompat/v1") 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)voidapiSchemasPost(javax.ws.rs.container.AsyncResponse response, @NotNull @Valid NewSchema schema, boolean verify, javax.ws.rs.core.SecurityContext securityContext)javax.ws.rs.core.ResponseapiSchemasSchemaidDelete(String schemaid)SchemaInfoapiSchemasSchemaidGet(String schemaid)javax.ws.rs.core.ResponseapiSchemasSchemaidPatch(String schemaid, @NotNull @Valid List<SchemaModificationPatch> schemaModificationPatches)voidapiSchemasSchemaidVersionsPost(javax.ws.rs.container.AsyncResponse response, @NotNull String schemaid, @NotNull @Valid NewSchemaVersion schema, boolean verify)javax.ws.rs.core.ResponseapiSchemasSchemaidVersionsVersionnumDelete(String schemaid, int versionnum)SchemaapiSchemasSchemaidVersionsVersionnumGet(String schemaid, int versionnum)javax.ws.rs.core.ResponseapiSchemasSchemaidVersionsVersionnumPatch(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
-
-