-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathswagger.yaml
More file actions
75 lines (75 loc) · 2.21 KB
/
swagger.yaml
File metadata and controls
75 lines (75 loc) · 2.21 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
openapi: 3.0.0
info:
title: User Checker API
version: 1.0.0
servers:
- url: http://localhost:3000
description: Local development server
- url: https://userlookupapi.westus2.cloudapp.azure.com
description: Production server (uses live data)
paths:
/checkUser:
get:
summary: Check if a user exists
parameters:
- in: query
name: firstname
schema:
type: string
required: true
description: First name of the user
- in: query
name: lastname
schema:
type: string
required: true
description: Last name of the user
- in: query
name: dateofbirth
schema:
type: string
required: true
description: YYYY-MM-DD
responses:
'200':
description: User existence result
content:
application/json:
schema:
type: object
properties:
code:
type: string
message:
type: string
user:
type: object
properties:
guest_title:
type: string
phone:
type: string
host_name:
type: string
host_id_number:
type: string
host_email:
type: string
guest_email:
type: string
building_location:
type: string
access_expiration:
type: string
example:
code: "0"
message: User exists
user:
guest_title: Guest
phone: "123-456-7890"
host_name: Jane Smith
host_id_number: "987654"
host_email: jane@example.com
guest_email: john@example.com
building_location: Building A
access_expiration: "2023-12-31"