Skip to content

Commit a4d11cc

Browse files
committed
Fix test case
1 parent 1bbd866 commit a4d11cc

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
openapi: 3.0.1
2+
info:
3+
title: Quarkus OAuth2 with scopes test
4+
version: '1.0'
5+
servers:
6+
- url: 'http://localhost:8080/'
7+
paths:
8+
/items:
9+
get:
10+
operationId: getItems
11+
summary: Get items
12+
security:
13+
- oauth2_scheme:
14+
- read:items
15+
responses:
16+
'200':
17+
description: OK
18+
post:
19+
operationId: createItem
20+
summary: Create item
21+
security:
22+
- oauth2_scheme:
23+
- write:items
24+
responses:
25+
'201':
26+
description: Created
27+
components:
28+
securitySchemes:
29+
oauth2_scheme:
30+
type: oauth2
31+
flows:
32+
clientCredentials:
33+
tokenUrl: https://example.com/oauth/token
34+
scopes:
35+
read:items: Read items
36+
write:items: Write items

0 commit comments

Comments
 (0)