Add support for schema deletion
- Add REST endpoints for schema deletion - by subject, format, version - by subject - by id - Add tests Resolves #716 Update doc
This commit is contained in:
committed by
Marius Bogoevici
parent
46fa71d3a5
commit
5d1cef2715
@@ -1280,6 +1280,7 @@ Spring Cloud Stream provides a schema registry server implementation.
|
||||
In order to use it, you can simply add the `spring-cloud-stream-schema-server` artifact to your project and use the `@EnableSchemaRegistryServer` annotation, adding the schema registry server REST controller to your application.
|
||||
This annotation is intended to be used with Spring Boot web applications, and the listening port of the server is controlled by the `server.port` setting.
|
||||
The `spring.cloud.stream.schema.server.path` setting can be used to control the root path of the schema server (especially when it is embedded in other applications).
|
||||
The `spring.cloud.stream.schema.server.alllowSchemaDeletion` boolean setting enables the deletion of schema. By default this is disabled.
|
||||
|
||||
The schema registry server uses a relational database to store the schemas.
|
||||
By default, it uses an embedded database.
|
||||
@@ -1344,6 +1345,18 @@ Response is a schema object in JSON format, with the following fields:
|
||||
* `version` the schema version;
|
||||
* `definition` the schema definition.
|
||||
|
||||
====== `DELETE /{subject}/{format}/{version}`
|
||||
|
||||
Delete an existing schema by its subject, format and version.
|
||||
|
||||
====== `DELETE /schemas/{id}`
|
||||
|
||||
Delete an existing schema by its id.
|
||||
|
||||
====== `DELETE /{subject}`
|
||||
|
||||
Delete existing schemas by their subject.
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
This note applies to users of Spring Cloud Stream 1.1.0.RELEASE only.
|
||||
|
||||
Reference in New Issue
Block a user