@Path(value="/ccompat/config")
@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 ConfigResource
Modifier and Type | Method and Description |
---|---|
CompatibilityLevelDto |
getGlobalCompatibilityLevel()
Get global compatibility level.
|
CompatibilityLevelDto |
getSubjectCompatibilityLevel(String subject)
Get compatibility level for a subject.
|
CompatibilityLevelDto |
updateGlobalCompatibilityLevel(@NotNull CompatibilityLevelDto request)
Update global compatibility level.
|
CompatibilityLevelDto |
updateSubjectCompatibilityLevel(String subject,
@NotNull CompatibilityLevelDto request)
Update compatibility level for the specified subject.
|
@GET CompatibilityLevelDto getGlobalCompatibilityLevel()
@PUT CompatibilityLevelDto updateGlobalCompatibilityLevel(@NotNull @NotNull CompatibilityLevelDto request)
@Path(value="/{subject}") @GET CompatibilityLevelDto getSubjectCompatibilityLevel(@PathParam(value="subject") String subject)
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@Path(value="/{subject}") @PUT CompatibilityLevelDto updateSubjectCompatibilityLevel(@PathParam(value="subject") String subject, @NotNull @NotNull CompatibilityLevelDto request)
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 primaryCopyright © 2020 Red Hat. All rights reserved.