Redpanda version 26.3 or later. Get the schema whose content has the GUID. A globally unique identifier (GUID) identifies the content of a schema across all contexts. Redpanda considers only the schema IDs that a subject version uses, including soft-deleted versions. If several schema IDs have the GUID, Redpanda uses the highest one in the default context that you have permission to read. If the default context has no such ID, Redpanda uses the first context in order of context name.
Query parameters
-
For Avro and Protobuf schemas only. Supported values: an empty string
''returns the schema in its current format (default), andserialized(Protobuf only) returns the schema in its Base64-encoded wire binary format. Unsupported values return a 501 error.
curl \
--request GET 'http://localhost:8081/schemas/guids/{guid}'
{
"schema": "string",
"schemaType": "string",
"references": [
{
"name": "string",
"subject": "string",
"version": 42
}
],
"metadata": {
"properties": {
"additionalProperty1": "string",
"additionalProperty2": "string"
}
},
"guid": "string"
}
{
"schema": "string",
"schemaType": "string",
"references": [
{
"name": "string",
"subject": "string",
"version": 42
}
],
"metadata": {
"properties": {
"additionalProperty1": "string",
"additionalProperty2": "string"
}
},
"guid": "string"
}
{
"schema": "string",
"schemaType": "string",
"references": [
{
"name": "string",
"subject": "string",
"version": 42
}
],
"metadata": {
"properties": {
"additionalProperty1": "string",
"additionalProperty2": "string"
}
},
"guid": "string"
}
{
"error_code": 42,
"message": "string"
}
{
"error_code": 42,
"message": "string"
}
{
"error_code": 42,
"message": "string"
}
{
"error_code": 42,
"message": "string"
}
{
"error_code": 42,
"message": "string"
}
{
"error_code": 42,
"message": "string"
}
{
"error_code": 42,
"message": "string"
}
{
"error_code": 42,
"message": "string"
}
{
"error_code": 42,
"message": "string"
}
{
"error_code": 42,
"message": "string"
}
{
"error_code": 42,
"message": "string"
}
{
"error_code": 42,
"message": "string"
}