Class SchemasResourceImpl
- java.lang.Object
-
- io.apicurio.registry.ccompat.rest.impl.AbstractResource
-
- io.apicurio.registry.ccompat.rest.impl.SchemasResourceImpl
-
- All Implemented Interfaces:
SchemasResource
@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 SchemasResourceImpl extends AbstractResource implements SchemasResource
- 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 SchemasResourceImpl()
-
Method Summary
All Methods Instance Methods Concrete 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
public SchemaContent getSchema(int id)
Description copied from interface:SchemasResource
Get the schema string identified by the input ID. Parameters:- Specified by:
getSchema
in interfaceSchemasResource
- 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
public List<SubjectVersion> getSubjectVersions(int id)
Description copied from interface:SchemasResource
Get the subject-version pairs identified by the input ID. Parameters:- Specified by:
getSubjectVersions
in interfaceSchemasResource
- 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
public List<String> getRegisteredTypes()
Description copied from interface:SchemasResource
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- Specified by:
getRegisteredTypes
in interfaceSchemasResource
-
-