List names of namespaces
Create namespace entry
Get namespace by id
| Name | Located in | Description | Required | Schema |
|---|
| id | path | | Yes | string |
Delete namespace by id
Ensure all schemas under this namespace is deleted, otherwise it will throw error
| Name | Located in | Description | Required | Schema |
|---|
| id | path | | Yes | string |
Update namespace entity by id
| Name | Located in | Description | Required | Schema |
|---|
| id | path | | Yes | string |
| body | body | | Yes | object |
List schemas under the namespace
| Name | Located in | Description | Required | Schema |
|---|
| id | path | | Yes | string |
Get latest schema
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'
| Name | Located in | Description | Required | Schema |
|---|
| namespaceId | path | | Yes | string |
| schemaId | path | | Yes | string |
| Code | Description | Schema |
|---|
| 200 | A 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. | |
| default | An unexpected error response. | rpcStatus |
Create schema under the namespace
| Name | Located in | Description | Required | Schema |
|---|
| namespaceId | path | | Yes | string |
| schemaId | path | | Yes | string |
| body | body | Request payload should be equivalent to curl --data-binary option | Yes | binary |
| X-Format | header | | No | string |
| X-Compatibility | header | | No | string |
| X-SourceURL | header | source URL of the project | No | string |
| X-CommitSHA | header | commit SHA of corresponding to th change | No | string |
Delete specified schema
| Name | Located in | Description | Required | Schema |
|---|
| namespaceId | path | | Yes | string |
| schemaId | path | | Yes | string |
Update only schema metadata
| Name | Located in | Description | Required | Schema |
|---|
| namespaceId | path | | Yes | string |
| schemaId | path | | Yes | string |
| body | body | | Yes | object |
Check schema compatibility
Checks comptibility with existing latest schema
| Name | Located in | Description | Required | Schema |
|---|
| namespaceId | path | | Yes | string |
| schemaId | path | | Yes | string |
| body | body | | Yes | binary |
| X-Compatibility | header | | No | string |
Create schema under the namespace. Returns version number, unique ID and location
| Name | Located in | Description | Required | Schema |
|---|
| namespaceId | path | | Yes | string |
| schemaId | path | | Yes | string |
List all version numbers for schema
| Name | Located in | Description | Required | Schema |
|---|
| namespaceId | path | | Yes | string |
| schemaId | path | | Yes | string |
Delete specified version of the schema
| Name | Located in | Description | Required | Schema |
|---|
| namespaceId | path | | Yes | string |
| schemaId | path | | Yes | string |
| versionId | path | | Yes | integer |
Global Search API
| Name | Located in | Description | Required | Schema |
|---|
| namespaceId | query | | No | string |
| schemaId | query | | No | string |
| query | query | | Yes | string |
| history | query | | No | boolean |
| versionId | query | | No | integer |
Detect Schema Change for the given version i.e v1 and v2.
| Name | Located in | Description | Required | Schema |
|---|
| namespaceId | path | | Yes | string |
| schemaName | path | | Yes | string |
| from | queryParam | version from which change has to be calculated | No | integer |
| to | queryParam | version to which change has to be calculated | No | integer |
| S. No. | From | To | From (In Code) | To (In Code) | Error |
|---|
| 1. | “” | “” | latest-1 | latest | N/A |
| 2. | “” | latest | latest-1 | latest | N/A |
| 3. | “” | 42 | 41 | 42 | N/A |
| 4. | 41 | “” | 41 | latest | N/A |
| 5. | 41 | 42 | 41 | 42 | N/A |
| 6. | 41 | 45 | 41 | 45 | N/A |
| 7. | 41 | 40 | - | - | Bad Request: From should be less than To |
| 8. | 41 | 41 | - | - | Bad Request: From should be less than To |
| Name | Type | Description | Required |
|---|
| SchemaCompatibility | string | | |
| Name | Type | Description | Required |
|---|
| SchemaFormat | string | | |
| Name | Type | Description | Required |
|---|
| typeUrl | string | | No |
| value | byte | | No |
| Name | Type | Description | Required |
|---|
| code | integer | | No |
| message | string | | No |
| details | [ protobufAny ] | | No |
| Name | Type | Description | Required |
|---|
| v1beta1CheckCompatibilityResponse | object | | |
| Name | Type | Description | Required |
|---|
| version | integer | | No |
| id | string | | No |
| location | string | | No |
| Name | Type | Description | Required |
|---|
| message | string | | No |
| Name | Type | Description | Required |
|---|
| message | string | | No |
| Name | Type | Description | Required |
|---|
| message | string | | No |
| Name | Type | Description | Required |
|---|
| data | byte | | No |
| Name | Type | Description | Required |
|---|
| data | byte | | No |
| Name | Type | Description | Required |
|---|
| namespaces | [ string ] | | No |
| Name | Type | Description | Required |
|---|
| schemas | [ string ] | | No |
| Name | Type | Description | Required |
|---|
| versions | [ integer ] | | No |
| Name | Type | Description | Required |
|---|
| namespaceId | string | | No |
| schemaId | string | | No |
| versionId | integer | | No |
| fields | [ string ] | | No |
| types | [ string ] | | No |
| path | string | | No |
| Name | Type | Description | Required |
|---|
| total | long | | No |
| Name | Type | Description | Required |
|---|
| event_id | string | event id of the message | No |
| event_timestamp | google.protobuf.Timestamp | timestamp for the message | No |
| namespace_name | string | name of namespace | No |
| schema_name | string | name of schema | No |
| updated_schemas | repeated string | directly updated schemas | No |
| updated_fields | ImpactedFields map<string, ImpactedFields> | impacted fields corresponding to schema | No |
| impacted_schemas | ImpactedSchemas map<string, ImpactedSchemas> | indirectly impacted schema corresponding to directly impacted schema | No |
| version | int32 | version | No |
| metadata | Metadata | Metdata like commit_sha , source_url | No |
| Name | Type | Description | Required |
|---|
| field_names | repeated string | List of impacted field names | No |
| Name | Type | Description | Required |
|---|
| schema_names | repeated string | List of impacted schema names | No |
| Name | Type | Description | Required |
|---|
| source_url | string | source URL of the project | No |
| commit_sha | string | commit SHA of the version | No |