Skip to content

Commit

Permalink
schema_registry: Tidy up swagger for config
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Pope <ben@redpanda.com>
  • Loading branch information
BenPope committed Apr 16, 2024
1 parent c64c4eb commit 23c12f5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 42 deletions.
55 changes: 13 additions & 42 deletions src/v/pandaproxy/api/api-doc/schema_registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,20 @@
"in": "path",
"required": true,
"type": "string"
},
{
"name": "defaultToGlobal",
"in": "query",
"required": false,
"type": "boolean"
}
],
"produces": ["application/vnd.schemaregistry.v1+json"],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"properties": {
"compatibilityLevel": {
"type": "string"
}
}
"$ref": "#/definitions/get_compatibility"
}
},
"500": {
Expand Down Expand Up @@ -55,12 +56,7 @@
"name": "config",
"in": "body",
"schema": {
"type": "object",
"properties": {
"compatibility": {
"type": "string"
}
}
"$ref": "#/definitions/put_compatibility"
}
}
],
Expand All @@ -69,12 +65,7 @@
"200": {
"description": "OK",
"schema": {
"type": "object",
"properties": {
"compatibility": {
"type": "string"
}
}
"$ref": "#/definitions/put_compatibility"
}
},
"500": {
Expand Down Expand Up @@ -106,12 +97,7 @@
"200": {
"description": "OK",
"schema": {
"type": "object",
"properties": {
"compatibility": {
"type": "string"
}
}
"$ref": "#/definitions/put_compatibility"
}
},
"404": {
Expand Down Expand Up @@ -144,12 +130,7 @@
"200": {
"description": "OK",
"schema": {
"type": "object",
"properties": {
"compatibilityLevel": {
"type": "string"
}
}
"$ref": "#/definitions/get_compatibility"
}
},
"500": {
Expand All @@ -173,12 +154,7 @@
"name": "config",
"in": "body",
"schema": {
"type": "object",
"properties": {
"compatibility": {
"type": "string"
}
}
"$ref": "#/definitions/put_compatibility"
}
}
],
Expand All @@ -187,12 +163,7 @@
"200": {
"description": "OK",
"schema": {
"type": "object",
"properties": {
"compatibility": {
"type": "string"
}
}
"$ref": "#/definitions/put_compatibility"
}
},
"500": {
Expand Down
16 changes: 16 additions & 0 deletions src/v/pandaproxy/api/api-doc/schema_registry_definitions.def.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,20 @@
"type": "string"
}
}
},
"get_compatibility": {
"type": "object",
"properties": {
"compatibilityLevel": {
"type": "string"
}
}
},
"put_compatibility": {
"type": "object",
"properties": {
"compatibility": {
"type": "string"
}
}
}

0 comments on commit 23c12f5

Please sign in to comment.