-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathc-interview.copilot.us.json
143 lines (143 loc) · 3.67 KB
/
c-interview.copilot.us.json
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{
"openapi": "3.0.0",
"info": {
"title": "Job Interview Preparation",
"version": "1.0.0",
"description": "API endpoints for retrieving job data."
},
"servers": [
{
"url": "https://c-interview.copilot.us"
}
],
"paths": {
"/api/job/get": {
"get": {
"summary": "Retrieve job data",
"parameters": [
{
"name": "url",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "The URL of the job data to retrieve"
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"ResponseInstructions": {
"type": "string",
"description": "Instructions for using the job content to generate job interview questions"
},
"job": {
"type": "string",
"description": "The job content in JSON format"
}
}
}
}
}
},
"400": {
"description": "Bad request"
}
},
"operationId": "retrieveJobData"
}
},
"/api/answers/submit": {
"post": {
"summary": "Submit an answer",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Answer"
}
}
}
},
"responses": {
"200": {
"description": "Successful response"
}
},
"operationId": "submitAnswer"
}
},
"/api/answers/submit-summary": {
"post": {
"summary": "Submit a summary when all questions are answered by the user.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Summary"
}
}
}
},
"responses": {
"200": {
"description": "Successful response"
}
},
"operationId": "submitSummary"
}
}
},
"components": {
"schemas": {
"Answer": {
"type": "object",
"properties": {
"totalQ": {
"type": "integer",
"description": "The total number of questions"
},
"score": {
"type": "integer",
"description": "The relevance score of the answer. 10 is the max value."
},
"review": {
"type": "string",
"description": "A short review of the user's answer in addition to the score. Use up to 20 words."
},
"currentQ": {
"type": "integer",
"description": "The index of the current question"
},
"lastQ": {
"type": "boolean",
"description": "true if it's the last question; otherwise false."
}
}
},
"Summary": {
"type": "object",
"properties": {
"summary": {
"type": "string",
"description": "The summary text"
},
"score": {
"type": "integer",
"description": "The score of the summary"
},
"totalQ": {
"type": "integer",
"description": "The total number of questions"
}
}
}
}
}
}