Class ConfigResourceImpl
- java.lang.Object
-
- io.apicurio.registry.ccompat.rest.impl.AbstractResource
-
- io.apicurio.registry.ccompat.rest.impl.ConfigResourceImpl
-
- All Implemented Interfaces:
ConfigResource
public class ConfigResourceImpl extends AbstractResource implements ConfigResource
- Author:
- Ales Justin, Jakub Senko 'jsenko@redhat.com'
-
-
Constructor Summary
Constructors Constructor Description ConfigResourceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompatibilityLevelParamDtogetGlobalCompatibilityLevel()Get global compatibility level.CompatibilityLevelParamDtogetSubjectCompatibilityLevel(String subject)Get compatibility level for a subject.CompatibilityLevelDtoupdateGlobalCompatibilityLevel(CompatibilityLevelDto request)Update global compatibility level.CompatibilityLevelDtoupdateSubjectCompatibilityLevel(String subject, CompatibilityLevelDto request)Update compatibility level for the specified subject.
-
-
-
Method Detail
-
getGlobalCompatibilityLevel
public CompatibilityLevelParamDto getGlobalCompatibilityLevel()
Description copied from interface:ConfigResourceGet global compatibility level. Response: - compatibility (string) – Global compatibility level. Will be one of BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, NONE Status Codes: 500 Internal Server Error Error code 50001 – Error in the backend data store- Specified by:
getGlobalCompatibilityLevelin interfaceConfigResource
-
updateGlobalCompatibilityLevel
public CompatibilityLevelDto updateGlobalCompatibilityLevel(CompatibilityLevelDto request)
Description copied from interface:ConfigResourceUpdate global compatibility level. Request: - compatibility (string) – New global compatibility level. Must be one of BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, NONE Status Codes: 422 Unprocessable Entity Error code 42203 – Invalid compatibility level 500 Internal Server Error Error code 50001 – Error in the backend data store- Specified by:
updateGlobalCompatibilityLevelin interfaceConfigResource
-
updateSubjectCompatibilityLevel
public CompatibilityLevelDto updateSubjectCompatibilityLevel(String subject, CompatibilityLevelDto request)
Description copied from interface:ConfigResourceUpdate compatibility level for the specified subject.- Specified by:
updateSubjectCompatibilityLevelin interfaceConfigResource- Parameters:
subject- (string) – Name of the subject Request: - compatibility (string) – New compatibility level for the subject. Must be one of BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, NONE Status Codes: 422 Unprocessable Entity – Error code 42203 – Invalid compatibility level 500 Internal Server Error – Error code 50001 – Error in the backend data store Error code 50003 – Error while forwarding the request to the primary
-
getSubjectCompatibilityLevel
public CompatibilityLevelParamDto getSubjectCompatibilityLevel(String subject)
Description copied from interface:ConfigResourceGet compatibility level for a subject.- Specified by:
getSubjectCompatibilityLevelin interfaceConfigResource- Parameters:
subject- (string) – Name of the subject Request: - compatibility (string) – Compatibility level for the subject. Will be one of BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, NONE Status Codes: 404 Not Found – Subject not found 500 Internal Server Error – Error code 50001 – Error in the backend data store
-
-