Retrieve the raw schema for the subject.
Returns the specified version of the schema in its original format, without backslashes.
Path parameters
-
The schema version to retrieve. Use an integer for a specific version or 'latest' for the most recent version.
Query parameters
-
Redpanda version 25.2 or later. 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.
GET /subjects/{subject}/versions/{version}/schema
curl \ --request GET 'http://localhost:8081/subjects/{subject}/versions/{version}/schema' Response examples (200)
string Response examples (200)
string Response examples (200)
string Response examples (404)
{ "error_code": 42, "message": "string" } Response examples (404)
{ "error_code": 42, "message": "string" } Response examples (404)
{ "error_code": 42, "message": "string" } Response examples (422)
{ "error_code": 42, "message": "string" } Response examples (422)
{ "error_code": 42, "message": "string" } Response examples (422)
{ "error_code": 42, "message": "string" } Response examples (500)
{ "error_code": 42, "message": "string" } Response examples (500)
{ "error_code": 42, "message": "string" } Response examples (500)
{ "error_code": 42, "message": "string" } Response examples (501)
{ "error_code": 42, "message": "string" } Response examples (501)
{ "error_code": 42, "message": "string" } Response examples (501)
{ "error_code": 42, "message": "string" }