Skip to main content

API

Version: 0.8.7​

/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
X-FormatheaderNostring
X-CompatibilityheaderNostring
X-SourceURLheadersource URL of the projectNostring
X-CommitSHAheadercommit SHA of corresponding to th changeNostring
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

Reconciliation API​

/v1beta1/schema/detect-change/{namespaceId}/{schemaName}?from={v1}&to={v2}​

GET​

Summary​

Detect Schema Change for the given version i.e v1 and v2.

Parameters​
NameLocated inDescriptionRequiredSchema
namespaceIdpathYesstring
schemaNamepathYesstring
fromqueryParamversion from which change has to be calculatedNointeger
toqueryParamversion to which change has to be calculatedNointeger
Different cases and validation of from and to version​
S. No.FromToFrom (In Code)To (In Code)Error
1.“”“”latest-1latestN/A
2.“”latestlatest-1latestN/A
3.“”424142N/A
4.41“”41latestN/A
5.41424142N/A
6.41454145N/A
7.4140--Bad Request: From should be less than To
8.4141--Bad Request: From should be less than To
Responses​
CodeDescriptionSchema
200A successful response.v1beta1SchemaChangedEvent
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

v1beta1SchemaChangedEvent​

NameTypeDescriptionRequired
event_idstringevent id of the messageNo
event_timestampgoogle.protobuf.Timestamptimestamp for the messageNo
namespace_namestringname of namespaceNo
schema_namestringname of schemaNo
updated_schemasrepeated stringdirectly updated schemasNo
updated_fieldsImpactedFields map<string, ImpactedFields>impacted fields corresponding to schemaNo
impacted_schemasImpactedSchemas map<string, ImpactedSchemas>indirectly impacted schema corresponding to directly impacted schemaNo
versionint32versionNo
metadataMetadataMetdata like commit_sha , source_urlNo

v1beta1ImpactedFields​

NameTypeDescriptionRequired
field_namesrepeated stringList of impacted field namesNo

v1beta1ImpactedSchemas​

NameTypeDescriptionRequired
schema_namesrepeated stringList of impacted schema namesNo

v1beta1Metadata​

NameTypeDescriptionRequired
source_urlstringsource URL of the projectNo
commit_shastringcommit SHA of the versionNo