Skip to content

Commit

Permalink
chore: Release 0.2.1 (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
h4rikris authored Apr 22, 2022
1 parent a5dc33e commit 3a5c619
Show file tree
Hide file tree
Showing 8 changed files with 572 additions and 178 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Stencil clients allows application to interact with stencil server to eserialize
- [Java](clients/java)
- [Go](clients/go)
- [Javascript](clients/js)
- [Clojure](clients/clojure)
- Ruby - Coming soon
- Python - Coming soon

Expand Down
2 changes: 1 addition & 1 deletion clients/clojure/project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject io.odpf/stencil-clj "0.2.0-SNAPSHOT"
(defproject io.odpf/stencil-clj "0.2.1"
:description "Stencil client for clojure"
:url "https://github.com/odpf/stencil"
:license {:name "Apache 2.0"
Expand Down
2 changes: 1 addition & 1 deletion clients/java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Protobuf allows you to define a protobuf file using DescriptorSet. A FileDescrip
#### Gradle

```groovy
implementation group: 'io.odpf', name: 'stencil', version: '0.2.0'
implementation group: 'io.odpf', name: 'stencil', version: '0.2.1'
```

#### Maven
Expand Down
2 changes: 1 addition & 1 deletion clients/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@odpf/stencil",
"version": "0.2.0",
"version": "0.2.1",
"description": "Stencil js client package provides a store to lookup protobuf descriptors and options to keep the protobuf descriptors upto date.",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/clients/clojure.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ A Clojure library designed to easily encode and decode protobuf messages by usin

Add the below dependency to your `project.clj` file:
```clj
[io.odpf/stencil-clj "0.2.0-SNAPSHOT"]
[io.odpf/stencil-clj "0.2.1"]
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/clients/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Protobuf allows you to define a protobuf file using DescriptorSet. A FileDescrip
#### Gradle

```groovy
implementation group: 'io.odpf', name: 'stencil', version: '0.1.6'
implementation group: 'io.odpf', name: 'stencil', version: '0.2.1'
```

#### Maven
Expand All @@ -25,7 +25,7 @@ Protobuf allows you to define a protobuf file using DescriptorSet. A FileDescrip
<dependency>
<groupId>io.odpf</groupId>
<artifactId>stencil</artifactId>
<version>0.1.6</version>
<version>0.2.1</version>
</dependency>
```

Expand Down
79 changes: 40 additions & 39 deletions docs/docs/reference/api.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# API
## Version: 0.2.0
## Version: 0.2.1

### /v1beta1/namespaces

Expand Down Expand Up @@ -115,45 +115,48 @@ List schemas under the namespace
| default | An unexpected error response. | [rpcStatus](#rpcstatus) |

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

#### GET
##### Summary

Create schema
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

| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ---- |
| namespaceId | path | | Yes | string |
| schemaId | path | | Yes | string |
| X-Format | headers | Can be used to override schema format defined at namespace level | No | [SchemaFormat](#schemaformat) |
| X-Compatibility | headers | Can be used to override schema compatibility defined at namespace level | No | [SchemaCompatibility](#schemacompatibility) |
| body | body | schema data | Yes | valid fileDescriptorSet data/avro/json schemas |

##### Responses

| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | A successful response. | [v1beta1CreateSchemaResponse](#v1beta1CreateSchemaResponse) |
| 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](#rpcstatus) |

#### GET

#### POST
##### Summary

Get latest schema
Create schema under the namespace

##### Parameters

| 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 |

##### Responses

| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | A 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-stream` | json or byte data |
| 200 | A successful response. | [v1beta1CreateSchemaResponse](#v1beta1createschemaresponse) |
| default | An unexpected error response. | [rpcStatus](#rpcstatus) |

#### DELETE
Expand Down Expand Up @@ -195,33 +198,39 @@ Update only schema metadata
| 200 | A successful response. | [v1beta1UpdateSchemaMetadataResponse](#v1beta1updateschemametadataresponse) |
| default | An unexpected error response. | [rpcStatus](#rpcstatus) |

### /v1beta1/namespaces/{namespaceId}/schemas/{schemaId}/meta
### /v1beta1/namespaces/{namespaceId}/schemas/{schemaId}/check

#### GET
#### POST
##### Summary

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

##### Description

Checks comptibility with existing latest schema

##### Parameters

| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ---- |
| namespaceId | path | | Yes | string |
| schemaId | path | | Yes | string |
| body | body | | Yes | binary |
| X-Compatibility | header | | No | string |

##### Responses

| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | A successful response. | [v1beta1GetSchemaMetadataResponse](#v1beta1getschemametadataresponse) |
| 200 | A successful response. | [v1beta1CreateSchemaResponse](#v1beta1createschemaresponse) |
| default | An unexpected error response. | [rpcStatus](#rpcstatus) |

### /v1beta1/namespaces/{namespaceId}/schemas/{schemaId}/versions
### /v1beta1/namespaces/{namespaceId}/schemas/{schemaId}/meta

#### GET
##### Summary

List all version numbers for schema
Create schema under the namespace. Returns version number, unique ID and location

##### Parameters

Expand All @@ -234,31 +243,32 @@ List all version numbers for schema

| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | A successful response. | [v1beta1ListVersionsResponse](#v1beta1listversionsresponse) |
| 200 | A successful response. | [v1beta1GetSchemaMetadataResponse](#v1beta1getschemametadataresponse) |
| default | An unexpected error response. | [rpcStatus](#rpcstatus) |

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

#### GET

##### Summary

Get schema for specified version
List all version numbers for schema

##### Parameters

| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ---- |
| namespaceId | path | | Yes | string |
| schemaId | path | | Yes | string |
| versionId | path | | Yes | integer |

##### Responses

| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | A 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-stream` | json or byte data |
| 200 | A successful response. | [v1beta1ListVersionsResponse](#v1beta1listversionsresponse) |
| default | An unexpected error response. | [rpcStatus](#rpcstatus) |

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

#### DELETE
##### Summary

Expand Down Expand Up @@ -311,27 +321,11 @@ Global Search API
| ---- | ---- | ----------- | -------- |
| SchemaCompatibility | string | | |

Enumarated values for Schema compatibility

| Values |
| ---- |
| COMPATIBILITY_BACKWARD |
| COMPATIBILITY_FORWARD |
| COMPATIBILITY_FULL |

#### SchemaFormat

| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| SchemaFormat | string | | |

Enumarated schema format values

| Values |
| ---- |
| FORMAT_PROTOBUF |
| FORMAT_AVRO |
| FORMAT_JSON |

#### protobufAny

Expand All @@ -348,6 +342,12 @@ Enumarated schema format values
| message | string | | No |
| details | [ [protobufAny](#protobufany) ] | | No |

#### v1beta1CheckCompatibilityResponse

| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| v1beta1CheckCompatibilityResponse | object | | |

#### v1beta1CreateNamespaceRequest

| Name | Type | Description | Required |
Expand Down Expand Up @@ -453,6 +453,7 @@ Enumarated schema format values
| versionId | integer | | No |
| fields | [ string ] | | No |
| types | [ string ] | | No |
| path | string | | No |

#### v1beta1SearchMeta

Expand Down
Loading

0 comments on commit 3a5c619

Please sign in to comment.