generated from staticwebdev/vue-basic
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathto-logicapp.yaml
68 lines (63 loc) · 1.45 KB
/
to-logicapp.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
openapi: 3.0.0
info:
title: de:code 2020 Tech Quiz - Answer
description: de:code 2020 Tech Quiz
version: 1.0.0
servers:
- url: '{logicAppsUrl}'
description: LogicApps の受け入れURL
variables:
logicAppsUrl:
default: <Input here>
description: LogicApps の受入れURL
paths:
/:
post:
operationId: answer
summary: Send an answer
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AnswerRequestBody'
responses:
'202':
description: Accepted
content:
application/text:
schema:
type: string
get:
operationId: getCurrentQuestion
summary: Get a current question
responses:
'200':
description: Succeeded
content:
application/json:
schema:
$ref: './shared-components.yaml#/components/schemas/CurrentQuestion'
components:
schemas:
AnswerRequestBody:
type: object
required:
- identifier
- nickname
- question_id
- answer_id
- isFirst
properties:
identifier:
type: string
format: uuid
nickname:
type: string
question_id:
type: string
answer_id:
type: string
pattern: 'a|b|c|d'
isFirst:
type: boolean
example: false