Interface SchemasResource
-
- All Known Implementing Classes:
SchemasResourceImpl
@Path("/apis/ccompat/v6/schemas") @Consumes({"application/json","application/octet-stream","application/vnd.schemaregistry.v1+json","application/vnd.schemaregistry+json"}) @Produces({"application/json","application/octet-stream","application/vnd.schemaregistry.v1+json","application/vnd.schemaregistry+json"}) public interface SchemasResource
Note: This API specification is owned by Confluent.- Author:
- Ales Justin, Jakub Senko 'jsenko@redhat.com'
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>
getRegisteredTypes()
Get the schema types that are registered with Schema Registry.SchemaContent
getSchema(int id)
Get the schema string identified by the input ID.List<SubjectVersion>
getSubjectVersions(int id)
Get the subject-version pairs identified by the input ID.
-
-
-
Method Detail
-
getSchema
@GET @Path("/ids/{id}") SchemaContent getSchema(@PathParam("id") int id)
Get the schema string identified by the input ID. Parameters:- Parameters:
id
- (int) – the globally unique identifier of the schema Response JSON Object: schema (string) – Schema string identified by the ID Status Codes: 404 Not Found – Error code 40403 – Schema not found 500 Internal Server Error – Error code 50001 – Error in the backend datastore
-
getSubjectVersions
@GET @Path("/ids/{id}/versions") List<SubjectVersion> getSubjectVersions(@PathParam("id") int id)
Get the subject-version pairs identified by the input ID. Parameters:- Parameters:
id
- (int) – the globally unique identifier of the schema Response JSON Array of Objects: subject (string) – Name of the subject version (int) – Version of the returned schema Status Codes: 404 Not Found – Error code 40403 – Schema not found 500 Internal Server Error – Error code 50001 – Error in the backend datastore
-
getRegisteredTypes
@GET @Path("types") List<String> getRegisteredTypes()
Get the schema types that are registered with Schema Registry. Response JSON Object: schema (string) – Schema types currently available on Schema Registry. Status Codes: 404 Not Found – Error code 40403 – Schema not found 500 Internal Server Error – Error code 50001 – Error in the backend datastore
-
-