Change createNewSchema action's endpoint
This commit is contained in:
parent
ab15290425
commit
af580e1fc4
2 changed files with 31 additions and 31 deletions
|
@ -109,7 +109,7 @@ public class SchemaRegistryService {
|
|||
.retrieve()
|
||||
.onStatus(HttpStatus::isError, ClientResponse::createException)
|
||||
.toEntity(SchemaSubject.class)
|
||||
.doOnError(log::error))
|
||||
.log())
|
||||
.orElse(Mono.error(new NotFoundException("No such cluster")));
|
||||
}
|
||||
|
||||
|
|
|
@ -358,6 +358,36 @@ paths:
|
|||
type: string
|
||||
|
||||
/api/clusters/{clusterName}/schemas/{schemaName}:
|
||||
post:
|
||||
tags:
|
||||
- /api/clusters
|
||||
summary: create a new subject schema
|
||||
operationId: createNewSchema
|
||||
parameters:
|
||||
- name: clusterName
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- name: schemaName
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/NewSchemaSubject'
|
||||
responses:
|
||||
200:
|
||||
description: Updated
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/SchemaSubject'
|
||||
400:
|
||||
description: Bad request
|
||||
delete:
|
||||
tags:
|
||||
- /api/clusters
|
||||
|
@ -406,36 +436,6 @@ paths:
|
|||
type: array
|
||||
items:
|
||||
type: integer
|
||||
post:
|
||||
tags:
|
||||
- /api/clusters
|
||||
summary: create a new subject schema
|
||||
operationId: createNewSchema
|
||||
parameters:
|
||||
- name: clusterName
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- name: schemaName
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/NewSchemaSubject'
|
||||
responses:
|
||||
200:
|
||||
description: Updated
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/SchemaSubject'
|
||||
400:
|
||||
description: Bad request
|
||||
|
||||
/api/clusters/{clusterName}/schemas/{schemaName}/latest:
|
||||
get:
|
||||
|
|
Loading…
Add table
Reference in a new issue