-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yaml
70 lines (70 loc) · 1.41 KB
/
swagger.yaml
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
paths:
/api/v2/courses:
get:
operationId: getCourses
responses:
"200":
$ref: '#/responses/CourseResponse'
tags:
- courses
/api/v2/courses/{id}:
get:
operationId: getCourse
parameters:
- description: The ID of the course
in: path
name: id
required: true
type: string
x-go-name: ID
responses:
"200":
$ref: '#/responses/CourseResponse'
tags:
- courses
/api/v2/students:
get:
operationId: getStudents
responses:
"200":
$ref: '#/responses/StudentResponse'
tags:
- students
/api/v2/students/{id}:
get:
operationId: getStudent
parameters:
- description: The ID of the student
in: path
name: id
required: true
type: string
x-go-name: ID
responses:
"200":
$ref: '#/responses/StudentResponse'
tags:
- students
responses:
CourseResponse:
description: Course represents a ...
headers:
id:
type: string
title:
type: string
StudentResponse:
description: Student represents a ...
headers:
email:
type: string
firstname:
type: string
id:
description: |-
in: path
required: true
type: string
lastname:
type: string
swagger: "2.0"