Skip to content

Commit c0526de

Browse files
authored
DGS-5490: Update openapi.yaml for /config and register schema (#35)
* 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
1 parent b0d877c commit c0526de

24 files changed

+842
-134
lines changed

.go-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.16.0

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Class | Method | HTTP request | Description
5050
*DefaultApi* | [**DeleteSubjectMode**](docs/DefaultApi.md#deletesubjectmode) | **Delete** /mode/{subject} | Deletes the specified subject-level mode and revert to the global default.
5151
*DefaultApi* | [**DeleteTag**](docs/DefaultApi.md#deletetag) | **Delete** /catalog/v1/entity/type/{typeName}/name/{qualifiedName}/tags/{tagName} | Delete a tag on an entity.
5252
*DefaultApi* | [**DeleteTagDef**](docs/DefaultApi.md#deletetagdef) | **Delete** /catalog/v1/types/tagdefs/{tagName} | Delete API for tag definition identified by its name.
53+
*DefaultApi* | [**DeleteTopLevelConfig**](docs/DefaultApi.md#deletetoplevelconfig) | **Delete** /config | Delete global compatibility level
5354
*DefaultApi* | [**Get**](docs/DefaultApi.md#get) | **Get** / | Schema Registry Root Resource
5455
*DefaultApi* | [**GetAllBusinessMetadataDefs**](docs/DefaultApi.md#getallbusinessmetadatadefs) | **Get** /catalog/v1/types/businessmetadatadefs | Bulk retrieval API for retrieving business metadata definitions.
5556
*DefaultApi* | [**GetAllTagDefs**](docs/DefaultApi.md#getalltagdefs) | **Get** /catalog/v1/types/tagdefs | Bulk retrieval API for retrieving tag definitions.
@@ -72,7 +73,7 @@ Class | Method | HTTP request | Description
7273
*DefaultApi* | [**GetSubjects**](docs/DefaultApi.md#getsubjects) | **Get** /schemas/ids/{id}/subjects | Get all the subjects associated with the input ID.
7374
*DefaultApi* | [**GetTagDefByName**](docs/DefaultApi.md#gettagdefbyname) | **Get** /catalog/v1/types/tagdefs/{tagName} | Get the tag definition with the given name.
7475
*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.
75-
*DefaultApi* | [**GetTopLevelConfig**](docs/DefaultApi.md#gettoplevelconfig) | **Get** /config | Get global compatibility level.
76+
*DefaultApi* | [**GetTopLevelConfig**](docs/DefaultApi.md#gettoplevelconfig) | **Get** /config | Get global compatibility level
7677
*DefaultApi* | [**GetTopLevelMode**](docs/DefaultApi.md#gettoplevelmode) | **Get** /mode | Get global mode.
7778
*DefaultApi* | [**GetVersions**](docs/DefaultApi.md#getversions) | **Get** /schemas/ids/{id}/versions | Get all the subject-version pairs associated with the input ID.
7879
*DefaultApi* | [**List**](docs/DefaultApi.md#list) | **Get** /subjects | Get a list of registered subjects.
@@ -84,7 +85,7 @@ Class | Method | HTTP request | Description
8485
*DefaultApi* | [**Post**](docs/DefaultApi.md#post) | **Post** / |
8586
*DefaultApi* | [**PutExporter**](docs/DefaultApi.md#putexporter) | **Put** /exporters/{name} | Alters an exporter.
8687
*DefaultApi* | [**PutExporterConfig**](docs/DefaultApi.md#putexporterconfig) | **Put** /exporters/{name}/config | Alters the config of an exporter.
87-
*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.
88+
*DefaultApi* | [**Register**](docs/DefaultApi.md#register) | **Post** /subjects/{subject}/versions | Register schema under a subject
8889
*DefaultApi* | [**ResetExporter**](docs/DefaultApi.md#resetexporter) | **Put** /exporters/{name}/reset | Reset an exporter.
8990
*DefaultApi* | [**ResumeExporter**](docs/DefaultApi.md#resumeexporter) | **Put** /exporters/{name}/resume | Resume an exporter.
9091
*DefaultApi* | [**SearchUsingAttribute**](docs/DefaultApi.md#searchusingattribute) | **Get** /catalog/v1/search/attribute | Retrieve data for the specified attribute search query.
@@ -97,7 +98,7 @@ Class | Method | HTTP request | Description
9798
*DefaultApi* | [**UpdateSubjectLevelConfig**](docs/DefaultApi.md#updatesubjectlevelconfig) | **Put** /config/{subject} | Update compatibility level for the specified subject.
9899
*DefaultApi* | [**UpdateTagDefs**](docs/DefaultApi.md#updatetagdefs) | **Put** /catalog/v1/types/tagdefs | Bulk update API for tag definitions.
99100
*DefaultApi* | [**UpdateTags**](docs/DefaultApi.md#updatetags) | **Put** /catalog/v1/entity/tags | Bulk API to update multiple tags.
100-
*DefaultApi* | [**UpdateTopLevelConfig**](docs/DefaultApi.md#updatetoplevelconfig) | **Put** /config | Update global compatibility level.
101+
*DefaultApi* | [**UpdateTopLevelConfig**](docs/DefaultApi.md#updatetoplevelconfig) | **Put** /config | Update global compatibility level
101102
*DefaultApi* | [**UpdateTopLevelMode**](docs/DefaultApi.md#updatetoplevelmode) | **Put** /mode | Update global mode.
102103

103104

@@ -122,10 +123,13 @@ Class | Method | HTTP request | Description
122123
- [ErrorMessage](docs/ErrorMessage.md)
123124
- [ExporterInfo](docs/ExporterInfo.md)
124125
- [ExporterStatus](docs/ExporterStatus.md)
126+
- [Metadata](docs/Metadata.md)
125127
- [Mode](docs/Mode.md)
126128
- [ModeUpdateRequest](docs/ModeUpdateRequest.md)
127129
- [RegisterSchemaRequest](docs/RegisterSchemaRequest.md)
128130
- [RegisterSchemaResponse](docs/RegisterSchemaResponse.md)
131+
- [Rule](docs/Rule.md)
132+
- [RuleSet](docs/RuleSet.md)
129133
- [Schema](docs/Schema.md)
130134
- [SchemaReference](docs/SchemaReference.md)
131135
- [SchemaString](docs/SchemaString.md)

0 commit comments

Comments
 (0)