Skip to content

Commit d91e8b9

Browse files
committed
Add POST auth endpoint
1 parent 7b6cf2e commit d91e8b9

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

contract/src/main/resources/swagger/kafbat-ui-api.yaml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ paths:
3131
items:
3232
$ref: '#/components/schemas/Cluster'
3333

34-
3534
/api/clusters/{clusterName}/cache:
3635
post:
3736
tags:
@@ -54,7 +53,6 @@ paths:
5453
404:
5554
description: Not found
5655

57-
5856
/api/clusters/{clusterName}/brokers:
5957
get:
6058
tags:
@@ -432,7 +430,6 @@ paths:
432430
404:
433431
description: Not found
434432

435-
436433
/api/clusters/{clusterName}/topics/{topicName}:
437434
get:
438435
tags:
@@ -2220,7 +2217,6 @@ paths:
22202217
schema:
22212218
$ref: '#/components/schemas/ApplicationConfigValidation'
22222219

2223-
22242220
/api/config/relatedfiles:
22252221
post:
22262222
tags:
@@ -2258,6 +2254,26 @@ paths:
22582254
schema:
22592255
$ref: '#/components/schemas/AppAuthenticationSettings'
22602256

2257+
/auth:
2258+
post:
2259+
summary: Authenticate
2260+
requestBody:
2261+
required: true
2262+
content:
2263+
application/x-www-form-urlencoded:
2264+
schema:
2265+
type: object
2266+
properties:
2267+
username:
2268+
type: string
2269+
password:
2270+
type: string
2271+
responses:
2272+
'200':
2273+
description: OK
2274+
'401':
2275+
description: Unauthorized
2276+
22612277
components:
22622278
schemas:
22632279
TopicSerdeSuggestion:

0 commit comments

Comments
 (0)