@Path(value="/ccompat/compatibility")
@Consumes(value={"application/json","application/octet-stream","application/vnd.schemaregistry.v1+json","application/vnd.schemaregistry+json"})
@Produces(value="application/vnd.schemaregistry.v1+json")
public interface CompatibilityResource
Modifier and Type | Method and Description |
---|---|
CompatibilityCheckResponse |
testCompatibilityBySubjectName(String subject,
String version,
@NotNull SchemaContent request)
Test input schema against a particular version of a subject’s schema for compatibility.
|
@POST @Path(value="/subjects/{subject}/versions/{version}") CompatibilityCheckResponse testCompatibilityBySubjectName(@PathParam(value="subject") String subject, @PathParam(value="version") String version, @NotNull @NotNull SchemaContent request) throws Exception
subject
- Subject of the schema version against which compatibility is to be testedversion
- Version of the subject’s schema against which compatibility is to be tested.
Valid values for versionId are between [1,2^31-1] or the string "latest".
"latest" checks compatibility of the input schema with the last registered schema under the specified subject
Status Codes:
404 Not Found
Error code 40401 – Subject not found
Error code 40402 – Version not found
422 Unprocessable Entity
Error code 42201 – Invalid schema
Error code 42202 – Invalid version
500 Internal Server Error
Error code 50001 – Error in the backend data storeException
Copyright © 2020 Red Hat. All rights reserved.