Class CompatibilityResourceImpl
- java.lang.Object
-
- io.apicurio.registry.ccompat.rest.impl.AbstractResource
-
- io.apicurio.registry.ccompat.rest.impl.CompatibilityResourceImpl
-
- All Implemented Interfaces:
CompatibilityResource
@ApplicationScoped @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 CompatibilityResourceImpl extends AbstractResource implements CompatibilityResource
- Author:
- Ales Justin, Jakub Senko 'jsenko@redhat.com'
-
-
Field Summary
-
Fields inherited from class io.apicurio.registry.ccompat.rest.impl.AbstractResource
log
-
-
Constructor Summary
Constructors Constructor Description CompatibilityResourceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompatibilityCheckResponse
testCompatibilityBySubjectName(String subject, String versionString, SchemaContent request)
Test input schema against a particular version of a subject’s schema for compatibility.
-
-
-
Method Detail
-
testCompatibilityBySubjectName
public CompatibilityCheckResponse testCompatibilityBySubjectName(String subject, String versionString, SchemaContent request) throws Exception
Description copied from interface:CompatibilityResource
Test input schema against a particular version of a subject’s schema for compatibility. Note that the compatibility level applied for the check is the configured compatibility level for the subject (GET /config/(string: subject)). If this subject’s compatibility level was never changed, then the global compatibility level applies (GET /config).- Specified by:
testCompatibilityBySubjectName
in interfaceCompatibilityResource
- Parameters:
subject
- Subject of the schema version against which compatibility is to be testedversionString
- 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 store- Throws:
Exception
-
-