Skip to content

Commit

Permalink
DGS-5490: Update openapi.yaml for /config and register schema (#35)
Browse files Browse the repository at this point in the history
* update openapi.yaml for /config and register schema

* minor fix

* remove redundant

* add mock

* update config model

* update SchemaString object, update query params for list subjects / schemas
  • Loading branch information
xiaoyali97 authored May 5, 2023
1 parent b0d877c commit c0526de
Show file tree
Hide file tree
Showing 24 changed files with 842 additions and 134 deletions.
1 change: 1 addition & 0 deletions .go-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.16.0
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**DeleteSubjectMode**](docs/DefaultApi.md#deletesubjectmode) | **Delete** /mode/{subject} | Deletes the specified subject-level mode and revert to the global default.
*DefaultApi* | [**DeleteTag**](docs/DefaultApi.md#deletetag) | **Delete** /catalog/v1/entity/type/{typeName}/name/{qualifiedName}/tags/{tagName} | Delete a tag on an entity.
*DefaultApi* | [**DeleteTagDef**](docs/DefaultApi.md#deletetagdef) | **Delete** /catalog/v1/types/tagdefs/{tagName} | Delete API for tag definition identified by its name.
*DefaultApi* | [**DeleteTopLevelConfig**](docs/DefaultApi.md#deletetoplevelconfig) | **Delete** /config | Delete global compatibility level
*DefaultApi* | [**Get**](docs/DefaultApi.md#get) | **Get** / | Schema Registry Root Resource
*DefaultApi* | [**GetAllBusinessMetadataDefs**](docs/DefaultApi.md#getallbusinessmetadatadefs) | **Get** /catalog/v1/types/businessmetadatadefs | Bulk retrieval API for retrieving business metadata definitions.
*DefaultApi* | [**GetAllTagDefs**](docs/DefaultApi.md#getalltagdefs) | **Get** /catalog/v1/types/tagdefs | Bulk retrieval API for retrieving tag definitions.
Expand All @@ -72,7 +73,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**GetSubjects**](docs/DefaultApi.md#getsubjects) | **Get** /schemas/ids/{id}/subjects | Get all the subjects associated with the input ID.
*DefaultApi* | [**GetTagDefByName**](docs/DefaultApi.md#gettagdefbyname) | **Get** /catalog/v1/types/tagdefs/{tagName} | Get the tag definition with the given name.
*DefaultApi* | [**GetTags**](docs/DefaultApi.md#gettags) | **Get** /catalog/v1/entity/type/{typeName}/name/{qualifiedName}/tags | Gets the list of classifications for a given entity represented by a qualifed name.
*DefaultApi* | [**GetTopLevelConfig**](docs/DefaultApi.md#gettoplevelconfig) | **Get** /config | Get global compatibility level.
*DefaultApi* | [**GetTopLevelConfig**](docs/DefaultApi.md#gettoplevelconfig) | **Get** /config | Get global compatibility level
*DefaultApi* | [**GetTopLevelMode**](docs/DefaultApi.md#gettoplevelmode) | **Get** /mode | Get global mode.
*DefaultApi* | [**GetVersions**](docs/DefaultApi.md#getversions) | **Get** /schemas/ids/{id}/versions | Get all the subject-version pairs associated with the input ID.
*DefaultApi* | [**List**](docs/DefaultApi.md#list) | **Get** /subjects | Get a list of registered subjects.
Expand All @@ -84,7 +85,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**Post**](docs/DefaultApi.md#post) | **Post** / |
*DefaultApi* | [**PutExporter**](docs/DefaultApi.md#putexporter) | **Put** /exporters/{name} | Alters an exporter.
*DefaultApi* | [**PutExporterConfig**](docs/DefaultApi.md#putexporterconfig) | **Put** /exporters/{name}/config | Alters the config of an exporter.
*DefaultApi* | [**Register**](docs/DefaultApi.md#register) | **Post** /subjects/{subject}/versions | Register a new schema under the specified subject. If successfully registered, this returns the unique identifier of this schema in the registry. The returned identifier should be used to retrieve this schema from the schemas resource and is different from the schema's version which is associated with the subject. If the same schema is registered under a different subject, the same identifier will be returned. However, the version of the schema may be different under different subjects. A schema should be compatible with the previously registered schema or schemas (if there are any) as per the configured compatibility level. The configured compatibility level can be obtained by issuing a GET http:get:: /config/(string: subject). If that returns null, then GET http:get:: /config When there are multiple instances of Schema Registry running in the same cluster, the schema registration request will be forwarded to one of the instances designated as the primary. If the primary is not available, the client will get an error code indicating that the forwarding has failed.
*DefaultApi* | [**Register**](docs/DefaultApi.md#register) | **Post** /subjects/{subject}/versions | Register schema under a subject
*DefaultApi* | [**ResetExporter**](docs/DefaultApi.md#resetexporter) | **Put** /exporters/{name}/reset | Reset an exporter.
*DefaultApi* | [**ResumeExporter**](docs/DefaultApi.md#resumeexporter) | **Put** /exporters/{name}/resume | Resume an exporter.
*DefaultApi* | [**SearchUsingAttribute**](docs/DefaultApi.md#searchusingattribute) | **Get** /catalog/v1/search/attribute | Retrieve data for the specified attribute search query.
Expand All @@ -97,7 +98,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**UpdateSubjectLevelConfig**](docs/DefaultApi.md#updatesubjectlevelconfig) | **Put** /config/{subject} | Update compatibility level for the specified subject.
*DefaultApi* | [**UpdateTagDefs**](docs/DefaultApi.md#updatetagdefs) | **Put** /catalog/v1/types/tagdefs | Bulk update API for tag definitions.
*DefaultApi* | [**UpdateTags**](docs/DefaultApi.md#updatetags) | **Put** /catalog/v1/entity/tags | Bulk API to update multiple tags.
*DefaultApi* | [**UpdateTopLevelConfig**](docs/DefaultApi.md#updatetoplevelconfig) | **Put** /config | Update global compatibility level.
*DefaultApi* | [**UpdateTopLevelConfig**](docs/DefaultApi.md#updatetoplevelconfig) | **Put** /config | Update global compatibility level
*DefaultApi* | [**UpdateTopLevelMode**](docs/DefaultApi.md#updatetoplevelmode) | **Put** /mode | Update global mode.


Expand All @@ -122,10 +123,13 @@ Class | Method | HTTP request | Description
- [ErrorMessage](docs/ErrorMessage.md)
- [ExporterInfo](docs/ExporterInfo.md)
- [ExporterStatus](docs/ExporterStatus.md)
- [Metadata](docs/Metadata.md)
- [Mode](docs/Mode.md)
- [ModeUpdateRequest](docs/ModeUpdateRequest.md)
- [RegisterSchemaRequest](docs/RegisterSchemaRequest.md)
- [RegisterSchemaResponse](docs/RegisterSchemaResponse.md)
- [Rule](docs/Rule.md)
- [RuleSet](docs/RuleSet.md)
- [Schema](docs/Schema.md)
- [SchemaReference](docs/SchemaReference.md)
- [SchemaString](docs/SchemaString.md)
Expand Down
Loading

0 comments on commit c0526de

Please sign in to comment.