forked from alexthissen/BuildWebAPIsWorkshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuildWebAPIs.v2.json
84 lines (84 loc) · 1.73 KB
/
BuildWebAPIs.v2.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
{
"x-generator": "NSwag v11.17.0.0 (NJsonSchema v9.10.42.0 (Newtonsoft.Json v11.0.0.0))",
"swagger": "2.0",
"info": {
"title": "Genealogy API",
"description": "Building Web APIs Workshop Demo Web API",
"version": "2.0"
},
"host": "localhost:44383",
"basePath": "/",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/api/v2.0/FamilyName/{name}": {
"get": {
"tags": [
"FamilyName"
],
"summary": "Retrieve profile of person based on name.",
"operationId": "FamilyName_Get",
"parameters": [
{
"type": "string",
"name": "name",
"in": "path",
"required": true,
"description": "Name of person.",
"x-nullable": false
}
],
"responses": {
"200": {
"x-nullable": true,
"description": "Detailed information regarding profile.",
"schema": {
"$ref": "#/definitions/FamilyProfile"
}
},
"400": {
"description": ""
}
}
}
}
},
"definitions": {
"FamilyProfile": {
"type": "object",
"additionalProperties": false,
"required": [
"gender"
],
"properties": {
"name": {
"type": "string"
},
"gender": {
"$ref": "#/definitions/Gender"
}
}
},
"Gender": {
"type": "string",
"description": "",
"x-enumNames": [
"Male",
"Female",
"Unknown"
],
"enum": [
"Male",
"Female",
"Unknown"
]
}
}
}