Liking cljdoc? Tell your friends :D

API

Version: 0.2.0

/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
bodybody Yesv1beta1CreateNamespaceRequest
Responses
CodeDescriptionSchema
200A successful response.v1beta1CreateNamespaceResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/namespaces/{id}

GET

Summary

Get namespace by id

Parameters
NameLocated inDescriptionRequiredSchema
idpath Yesstring
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
idpath Yesstring
Responses
CodeDescriptionSchema
200A successful response.v1beta1DeleteNamespaceResponse
defaultAn unexpected error response.rpcStatus

PUT

Summary

Update namespace entity by id

Parameters
NameLocated inDescriptionRequiredSchema
idpath Yesstring
bodybody Yesobject
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
idpath Yesstring
Responses
CodeDescriptionSchema
200A successful response.v1beta1ListSchemasResponse
defaultAn unexpected error response.rpcStatus

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

POST

Summary

Create schema

Parameters
NameLocated inDescriptionRequiredSchema
namespaceIdpath Yesstring
schemaIdpath Yesstring
X-FormatheadersCan be used to override schema format defined at namespace levelNoSchemaFormat
X-CompatibilityheadersCan be used to override schema compatibility defined at namespace levelNoSchemaCompatibility
bodybodyschema dataYesvalid fileDescriptorSet data/avro/json schemas
Responses
CodeDescriptionSchema
200A successful response.v1beta1CreateSchemaResponse
defaultAn unexpected error response.rpcStatus

GET

Summary

Get latest schema

Parameters
NameLocated inDescriptionRequiredSchema
namespaceIdpath Yesstring
schemaIdpath Yesstring
Responses
CodeDescriptionSchema
200A successful 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-streamjson or byte data
defaultAn unexpected error response.rpcStatus

DELETE

Summary

Delete specified schema

Parameters
NameLocated inDescriptionRequiredSchema
namespaceIdpath Yesstring
schemaIdpath Yesstring
Responses
CodeDescriptionSchema
200A successful response.v1beta1DeleteSchemaResponse
defaultAn unexpected error response.rpcStatus

PATCH

Summary

Update only schema metadata

Parameters
NameLocated inDescriptionRequiredSchema
namespaceIdpath Yesstring
schemaIdpath Yesstring
bodybody Yesobject
Responses
CodeDescriptionSchema
200A successful response.v1beta1UpdateSchemaMetadataResponse
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
namespaceIdpath Yesstring
schemaIdpath Yesstring
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
namespaceIdpath Yesstring
schemaIdpath Yesstring
Responses
CodeDescriptionSchema
200A successful response.v1beta1ListVersionsResponse
defaultAn unexpected error response.rpcStatus

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

GET

Summary

Get schema for specified version

Parameters
NameLocated inDescriptionRequiredSchema
namespaceIdpath Yesstring
schemaIdpath Yesstring
versionIdpath Yesinteger
Responses
CodeDescriptionSchema
200A successful 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-streamjson or byte data
defaultAn unexpected error response.rpcStatus

DELETE

Summary

Delete specified version of the schema

Parameters
NameLocated inDescriptionRequiredSchema
namespaceIdpath Yesstring
schemaIdpath Yesstring
versionIdpath Yesinteger
Responses
CodeDescriptionSchema
200A successful response.v1beta1DeleteVersionResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/search

GET

Summary

Global Search API

Parameters
NameLocated inDescriptionRequiredSchema
namespaceIdquery Nostring
schemaIdquery Nostring
queryquery Yesstring
historyquery Noboolean
versionIdquery Nointeger
Responses
CodeDescriptionSchema
200A successful response.v1beta1SearchResponse
defaultAn unexpected error response.rpcStatus

Models

SchemaCompatibility

NameTypeDescriptionRequired
SchemaCompatibilitystring

Enumarated values for Schema compatibility

Values
COMPATIBILITY_BACKWARD
COMPATIBILITY_FORWARD
COMPATIBILITY_FULL

SchemaFormat

NameTypeDescriptionRequired
SchemaFormatstring

Enumarated schema format values

Values
FORMAT_PROTOBUF
FORMAT_AVRO
FORMAT_JSON

protobufAny

NameTypeDescriptionRequired
typeUrlstring No
valuebyte No

rpcStatus

NameTypeDescriptionRequired
codeinteger No
messagestring No
details[ protobufAny ] No

v1beta1CreateNamespaceRequest

NameTypeDescriptionRequired
idstring Yes
formatSchemaFormat No
compatibilitySchemaCompatibility No
descriptionstring No

v1beta1CreateNamespaceResponse

NameTypeDescriptionRequired
namespacev1beta1Namespace No

v1beta1CreateSchemaResponse

NameTypeDescriptionRequired
versioninteger No
idstring No
locationstring No

v1beta1DeleteNamespaceResponse

NameTypeDescriptionRequired
messagestring No

v1beta1DeleteSchemaResponse

NameTypeDescriptionRequired
messagestring No

v1beta1DeleteVersionResponse

NameTypeDescriptionRequired
messagestring No

v1beta1GetLatestSchemaResponse

NameTypeDescriptionRequired
databyte No

v1beta1GetNamespaceResponse

NameTypeDescriptionRequired
namespacev1beta1Namespace No

v1beta1GetSchemaMetadataResponse

NameTypeDescriptionRequired
formatSchemaFormat No
compatibilitySchemaCompatibility No
authoritystring No

v1beta1GetSchemaResponse

NameTypeDescriptionRequired
databyte No

v1beta1ListNamespacesResponse

NameTypeDescriptionRequired
namespaces[ string ] No

v1beta1ListSchemasResponse

NameTypeDescriptionRequired
schemas[ string ] No

v1beta1ListVersionsResponse

NameTypeDescriptionRequired
versions[ integer ] No

v1beta1Namespace

NameTypeDescriptionRequired
idstring No
formatSchemaFormat No
CompatibilitySchemaCompatibility No
descriptionstring No
createdAtdateTime No
updatedAtdateTime No

v1beta1SearchHits

NameTypeDescriptionRequired
namespaceIdstring No
schemaIdstring No
versionIdinteger No
fields[ string ] No
types[ string ] No

v1beta1SearchMeta

NameTypeDescriptionRequired
totallong No

v1beta1SearchResponse

NameTypeDescriptionRequired
hits[ v1beta1SearchHits ] No
metav1beta1SearchMeta No

v1beta1UpdateNamespaceResponse

NameTypeDescriptionRequired
namespacev1beta1Namespace No

v1beta1UpdateSchemaMetadataResponse

NameTypeDescriptionRequired
formatSchemaFormat No
compatibilitySchemaCompatibility No
authoritystring No

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close