-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
84 lines (84 loc) · 2.39 KB
/
openapi.yaml
File metadata and controls
84 lines (84 loc) · 2.39 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
openapi: 3.1.0
info: {title: OpenAPI definition, version: v0}
servers:
- {url: 'http://localhost:8080', description: Generated server url}
paths:
/api/auth/login:
post:
tags: [auth-controller]
operationId: login
requestBody:
content:
application/json:
schema: {$ref: '#/components/schemas/LoginRequestDTO'}
required: true
responses:
'200': {description: OK}
/api/requestResource/fetchAndCloneRepositories:
get:
tags: [request-resource]
operationId: fetchAndCloneRepositories
parameters:
- name: jwt
in: cookie
required: false
schema: {type: string}
- name: artemis_server_url
in: cookie
required: false
schema: {type: string}
- name: artemis_username
in: cookie
required: false
schema: {type: string}
- name: artemis_password
in: cookie
required: false
schema: {type: string}
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items: {$ref: '#/components/schemas/TeamRepositoryDTO'}
components:
schemas:
LoginRequestDTO:
type: object
properties:
password: {type: string, minLength: 1}
serverUrl: {type: string, minLength: 1}
username: {type: string, minLength: 1}
required: [password, serverUrl, username]
ParticipantDTO:
type: object
properties:
id: {type: integer, format: int64}
login: {type: string}
name: {type: string}
ParticipationDTO:
type: object
properties:
id: {type: integer, format: int64}
repositoryUri: {type: string}
team: {$ref: '#/components/schemas/TeamDTO'}
TeamDTO:
type: object
properties:
id: {type: integer, format: int64}
name: {type: string}
owner: {$ref: '#/components/schemas/ParticipantDTO'}
shortName: {type: string}
students:
type: array
items: {$ref: '#/components/schemas/ParticipantDTO'}
TeamRepositoryDTO:
type: object
properties:
commitCount: {type: integer, format: int32}
error: {type: string}
isCloned: {type: boolean}
localPath: {type: string}
participation: {$ref: '#/components/schemas/ParticipationDTO'}