DigitalOcean-public.v2-new_Databases
Get Kafka Schema by Subject Version
To get a specific schema by subject name for a Kafka cluster, send a GET request to /v2/databases/$DATABASE_ID/schema-registry/$SUBJECT_NAME/versions/$VERSION.
get/v2/databases/{database_cluster_uuid}/schema-registry/{subject_name}/versions/{version}
Path parameters
database_cluster_uuidstring uuid required
A unique identifier for a database cluster.
subject_namestring required
The name of the Kafka schema subject.
versionstring required
The version of the Kafka schema subject.
Response
A JSON object.
Example response
{
"schema_id": 12345,
"version": "1",
"subject_name": "customer-schema",
"schema_type": "AVRO",
"schema": "{\n \"type\": \"record\",\n \"name\": \"Customer\",\n \"fields\": [ \n {\"name\": \"id\", \"type\": \"int\"},\n {\"name\": \"name\", \"type\": \"string\"}\n ]\n} "
}