-
Notifications
You must be signed in to change notification settings - Fork 275
Expand file tree
/
Copy pathdocWithSecurityScheme.yaml
More file actions
32 lines (32 loc) · 1 KB
/
docWithSecurityScheme.yaml
File metadata and controls
32 lines (32 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
openapi: 3.0.0
info:
title: Repair Service
version: 1.0.0
servers:
- url: https://pluginrentu.azurewebsites.net/api
components:
securitySchemes:
oAuth2AuthCode:
type: oauth2
description: OAuth configuration for the repair service
flows:
authorizationCode:
authorizationUrl: https://login.microsoftonline.com/2f13b28c-bd4d-43e2-8ae6-48594aaba125/oauth2/v2.0/authorize
tokenUrl: https://login.microsoftonline.com/2f13b28c-bd4d-43e2-8ae6-48594aaba125/oauth2/v2.0/token
scopes:
api://a2a7226d-e8d1-4ded-8c53-dd4c136ff456/repairs_read: Read repair records
paths:
/repairs:
get:
operationId: listRepairs
summary: List all repairs with oauth
description: Returns a list of repairs with their details and images
security:
- oAuth2AuthCode: []
responses:
'200':
description: A list of repairs
content:
application/json:
schema:
type: object