This repository was archived by the owner on Apr 26, 2021. It is now read-only.
File tree 2 files changed +114
-0
lines changed
2 files changed +114
-0
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,9 @@ This project contains azure functions and proxies used to back the core-api-mgmt
5
5
## Unit tests
6
6
7
7
` npm install && npm test `
8
+
9
+ ## Open API (Swagger) definition
10
+
11
+ As of now, the API definition is located in the ` ./openApi.json ` file.
12
+
13
+ You may modify this specification accordingly to any modification you may perform as this task is not automated so far.
Original file line number Diff line number Diff line change
1
+ {
2
+ "swagger" : " 2.0" ,
3
+ "info" : {
4
+ "title" : " apim-functions-dev" ,
5
+ "version" : " 1.0" ,
6
+ "description" : " Import from \" apim-functions-dev\" Function App"
7
+ },
8
+ "host" : " apim-preview.service.core-compute-preview.internal" ,
9
+ "basePath" : " /apim-functions-dev" ,
10
+ "schemes" : [" https" ],
11
+ "securityDefinitions" : {
12
+ "apiKeyHeader" : {
13
+ "type" : " apiKey" ,
14
+ "name" : " Ocp-Apim-Subscription-Key" ,
15
+ "in" : " header"
16
+ },
17
+ "apiKeyQuery" : {
18
+ "type" : " apiKey" ,
19
+ "name" : " subscription-key" ,
20
+ "in" : " query"
21
+ }
22
+ },
23
+ "security" : [
24
+ {
25
+ "apiKeyHeader" : []
26
+ },
27
+ {
28
+ "apiKeyQuery" : []
29
+ }
30
+ ],
31
+ "x-servers" : [
32
+ {
33
+ "url" : " https://apim-preview.service.core-compute-preview.internal"
34
+ },
35
+ {
36
+ "url" : " https://core-api-mgmt-preview-uksouth-01.regional.azure-api.net"
37
+ }
38
+ ],
39
+ "paths" : {
40
+ "/totp" : {
41
+ "get" : {
42
+ "operationId" : " get-gettotp" ,
43
+ "summary" : " GetTotp" ,
44
+ "produces" : [" application/json" ],
45
+ "parameters" : [
46
+ {
47
+ "in" : " header" ,
48
+ "name" : " service-key" ,
49
+ "type" : " string" ,
50
+ "required" : true
51
+ }
52
+ ],
53
+ "responses" : {
54
+ "200" : {
55
+ "description" : " OK" ,
56
+ "schema" : {
57
+ "type" : " object" ,
58
+ "properties" : {
59
+ "totp" : {
60
+ "type" : " string" ,
61
+ "description" : " Timed one time password value"
62
+ }
63
+ }
64
+ }
65
+ },
66
+ "500" : {
67
+ "description" : " Error" ,
68
+ "schema" : {
69
+ "type" : " object" ,
70
+ "properties" : {
71
+ "error" : {
72
+ "type" : " object" ,
73
+ "properties" : {
74
+ "message" : {
75
+ "type" : " string" ,
76
+ "description" : " Error description"
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ },
86
+ "/addresses/{postcode}" : {
87
+ "get" : {
88
+ "description" : " Retrieves addresses from postcode" ,
89
+ "operationId" : " getadresses" ,
90
+ "summary" : " GetAdresses" ,
91
+ "parameters" : [
92
+ {
93
+ "name" : " postcode" ,
94
+ "in" : " path" ,
95
+ "required" : true ,
96
+ "type" : " string"
97
+ }
98
+ ],
99
+ "responses" : {
100
+ "200" : {
101
+ "description" : " OK"
102
+ }
103
+ }
104
+ }
105
+ }
106
+ },
107
+ "tags" : []
108
+ }
You can’t perform that action at this time.
0 commit comments