-
Notifications
You must be signed in to change notification settings - Fork 1
/
swagger-example.json
90 lines (90 loc) · 2.21 KB
/
swagger-example.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
{
"swagger": "2.0",
"info": {
"description": "This is an example BFF service for the Contact Picker Smart Widget",
"version": "1.0.0",
"title": "Contact Picker BFF",
"contact": {
"email": "joeri.sebrechts@digipolis.be"
},
"license": {
"name": "MIT"
}
},
"host": "localhost:3000",
"basePath": "/api",
"schemes": [
"http"
],
"paths": {
"/medewerkers": {
"get": {
"summary": "Return the matching contacts from mprofiel",
"description": "Search is performed by first or last name, combining the results.",
"operationId": "listMedewerkers",
"produces": [
"application/json"
],
"parameters": [
{
"name": "search",
"in": "query",
"description": "The search string to match contacts by",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
"$ref": "#/definitions/Contacts"
}
}
}
}
}
},
"definitions": {
"Contact": {
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"userName": {
"type": "string",
"description": "The login id of this user"
},
"email": {
"type": "string"
},
"domain": {
"type": "string",
"description": "The AD domain that the user belongs to"
},
"avatarUrl": {
"type": "string"
}
}
},
"Contacts": {
"type": "array",
"items": {
"$ref": "#/definitions/Contact"
}
}
}
}