Skip to main content

API

Version: 0.5.1​

/v1beta1/namespaces​

GET​

Summary​

List names of namespaces

Responses​
CodeDescriptionSchema
200A successful response.v1beta1ListNamespacesResponse
defaultAn unexpected error response.rpcStatus

POST​

Summary​

Create namespace entry

Parameters​
NameLocated inDescriptionRequiredSchema
bodybodyYesv1beta1CreateNamespaceRequest
Responses​
CodeDescriptionSchema
200A successful response.v1beta1CreateNamespaceResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/namespaces/{id}​

GET​

Summary​

Get namespace by id

Parameters​
NameLocated inDescriptionRequiredSchema
idpathYesstring
Responses​
CodeDescriptionSchema
200A successful response.v1beta1GetNamespaceResponse
defaultAn unexpected error response.rpcStatus

DELETE​

Summary​

Delete namespace by id

Description​

Ensure all schemas under this namespace is deleted, otherwise it will throw error

Parameters​
NameLocated inDescriptionRequiredSchema
idpathYesstring
Responses​
CodeDescriptionSchema
200A successful response.v1beta1DeleteNamespaceResponse
defaultAn unexpected error response.rpcStatus

PUT​

Summary​

Update namespace entity by id

Parameters​
NameLocated inDescriptionRequiredSchema
idpathYesstring
bodybodyYesobject
Responses​
CodeDescriptionSchema
200A successful response.v1beta1UpdateNamespaceResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/namespaces/{id}/schemas​

GET​

Summary​

List schemas under the namespace

Parameters​
NameLocated inDescriptionRequiredSchema
idpathYesstring
Responses​
CodeDescriptionSchema
200A successful response.v1beta1ListSchemasResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/namespaces/{namespaceId}/schemas/{schemaId}​

GET​

Summary​

Get latest schema

Description​

Returns latest schema in it's own data type. For protobuf response type would be 'application/octet-stream'. Avro, json schema response type would be 'application/json'

Parameters​
NameLocated inDescriptionRequiredSchema
namespaceIdpathYesstring
schemaIdpathYesstring
Responses​
CodeDescriptionSchema
200A successful schema response. Based on schema format, response will return different content types. For avro and json schemas response type is application/json. For protobuf response type is application/octet-stream.
defaultAn unexpected error response.rpcStatus

POST​

Summary​

Create schema under the namespace

Parameters​
NameLocated inDescriptionRequiredSchema
namespaceIdpathYesstring
schemaIdpathYesstring
bodybodyRequest payload should be equivalent to curl --data-binary optionYesbinary
Responses​
CodeDescriptionSchema
200A successful response.v1beta1CreateSchemaResponse
defaultAn unexpected error response.rpcStatus

DELETE​

Summary​

Delete specified schema

Parameters​
NameLocated inDescriptionRequiredSchema
namespaceIdpathYesstring
schemaIdpathYesstring
Responses​
CodeDescriptionSchema
200A successful response.v1beta1DeleteSchemaResponse
defaultAn unexpected error response.rpcStatus

PATCH​

Summary​

Update only schema metadata

Parameters​
NameLocated inDescriptionRequiredSchema
namespaceIdpathYesstring
schemaIdpathYesstring
bodybodyYesobject
Responses​
CodeDescriptionSchema
200A successful response.v1beta1UpdateSchemaMetadataResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/namespaces/{namespaceId}/schemas/{schemaId}/check​

POST​

Summary​

Check schema compatibility

Description​

Checks comptibility with existing latest schema

Parameters​
NameLocated inDescriptionRequiredSchema
namespaceIdpathYesstring
schemaIdpathYesstring
bodybodyYesbinary
X-CompatibilityheaderNostring
Responses​
CodeDescriptionSchema
200A successful response.v1beta1CreateSchemaResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/namespaces/{namespaceId}/schemas/{schemaId}/meta​

GET​

Summary​

Create schema under the namespace. Returns version number, unique ID and location

Parameters​
NameLocated inDescriptionRequiredSchema
namespaceIdpathYesstring
schemaIdpathYesstring
Responses​
CodeDescriptionSchema
200A successful response.v1beta1GetSchemaMetadataResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/namespaces/{namespaceId}/schemas/{schemaId}/versions​

GET​

Summary​

List all version numbers for schema

Parameters​
NameLocated inDescriptionRequiredSchema
namespaceIdpathYesstring
schemaIdpathYesstring
Responses​
CodeDescriptionSchema
200A successful response.v1beta1ListVersionsResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/namespaces/{namespaceId}/schemas/{schemaId}/versions/{versionId}​

DELETE​

Summary​

Delete specified version of the schema

Parameters​
NameLocated inDescriptionRequiredSchema
namespaceIdpathYesstring
schemaIdpathYesstring
versionIdpathYesinteger
Responses​
CodeDescriptionSchema
200A successful response.v1beta1DeleteVersionResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/search​

GET​

Summary​

Global Search API

Parameters​
NameLocated inDescriptionRequiredSchema
namespaceIdqueryNostring
schemaIdqueryNostring
queryqueryYesstring
historyqueryNoboolean
versionIdqueryNointeger
Responses​
CodeDescriptionSchema
200A successful response.v1beta1SearchResponse
defaultAn unexpected error response.rpcStatus

Models​

SchemaCompatibility​

NameTypeDescriptionRequired
SchemaCompatibilitystring

SchemaFormat​

NameTypeDescriptionRequired
SchemaFormatstring

protobufAny​

NameTypeDescriptionRequired
typeUrlstringNo
valuebyteNo

rpcStatus​

NameTypeDescriptionRequired
codeintegerNo
messagestringNo
details[ protobufAny ]No

v1beta1CheckCompatibilityResponse​

NameTypeDescriptionRequired
v1beta1CheckCompatibilityResponseobject

v1beta1CreateNamespaceRequest​

NameTypeDescriptionRequired
idstringYes
formatSchemaFormatNo
compatibilitySchemaCompatibilityNo
descriptionstringNo

v1beta1CreateNamespaceResponse​

NameTypeDescriptionRequired
namespacev1beta1NamespaceNo

v1beta1CreateSchemaResponse​

NameTypeDescriptionRequired
versionintegerNo
idstringNo
locationstringNo

v1beta1DeleteNamespaceResponse​

NameTypeDescriptionRequired
messagestringNo

v1beta1DeleteSchemaResponse​

NameTypeDescriptionRequired
messagestringNo

v1beta1DeleteVersionResponse​

NameTypeDescriptionRequired
messagestringNo

v1beta1GetLatestSchemaResponse​

NameTypeDescriptionRequired
databyteNo

v1beta1GetNamespaceResponse​

NameTypeDescriptionRequired
namespacev1beta1NamespaceNo

v1beta1GetSchemaMetadataResponse​

NameTypeDescriptionRequired
formatSchemaFormatNo
compatibilitySchemaCompatibilityNo
authoritystringNo

v1beta1GetSchemaResponse​

NameTypeDescriptionRequired
databyteNo

v1beta1ListNamespacesResponse​

NameTypeDescriptionRequired
namespaces[ string ]No

v1beta1ListSchemasResponse​

NameTypeDescriptionRequired
schemas[ string ]No

v1beta1ListVersionsResponse​

NameTypeDescriptionRequired
versions[ integer ]No

v1beta1Namespace​

NameTypeDescriptionRequired
idstringNo
formatSchemaFormatNo
CompatibilitySchemaCompatibilityNo
descriptionstringNo
createdAtdateTimeNo
updatedAtdateTimeNo

v1beta1SearchHits​

NameTypeDescriptionRequired
namespaceIdstringNo
schemaIdstringNo
versionIdintegerNo
fields[ string ]No
types[ string ]No
pathstringNo

v1beta1SearchMeta​

NameTypeDescriptionRequired
totallongNo

v1beta1SearchResponse​

NameTypeDescriptionRequired
hits[ v1beta1SearchHits ]No
metav1beta1SearchMetaNo

v1beta1UpdateNamespaceResponse​

NameTypeDescriptionRequired
namespacev1beta1NamespaceNo

v1beta1UpdateSchemaMetadataResponse​

NameTypeDescriptionRequired
formatSchemaFormatNo
compatibilitySchemaCompatibilityNo
authoritystringNo