-
Notifications
You must be signed in to change notification settings - Fork 17
/
REST.http
233 lines (180 loc) · 6.29 KB
/
REST.http
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
##
# vscode rest client extension http file
# see https://github.com/Huachao/vscode-restclient
# use ### to separate requests
##
##
#
# cert setup. place in vscode 'setttings.json'
#"rest-client.certificates": {
# "%fqdn%: {
# "pfx": "%path to pfx file%",
# "passphrase": ""
# }
# },
##
##
# azure aadv1 setup
#
# "rest-client.environmentVariables": {
# "$shared": {
# "subscriptionId": "",
# "tenantId": ""
# }
# }
##
# ip info
https://ipinfo.io/json
###
# sf package download versions
https://go.microsoft.com/fwlink/?LinkID=824848&clcid=0x409
###
###
GET https://api.github.com/repos/microsoft/CollectServiceFabricData/releases/latest
# github api urls
https://api.github.com
###
# github repo views query
# @name repoViewsQuery
@gitToken =
#https://api.github.com/repos/jagilber/powershellscripts/traffic/views
https://api.github.com/repos/jagilber/powershellscripts/traffic/popular/paths
Authorization: Bearer {{gitToken}}
Accept: application/vnd.github+json
X-GitHub-Api-Version: 2022-11-28
###
# github repo query
# @name repoQuery
https://api.github.com/repos/jagilber/powershellscripts
###
@forks = {{repoQuery.response.body.$.forks_url}}
GET {{forks}}
###
@downloads = {{repoQuery.response.body.$.downloads_url}}
GET {{downloads}}
###
https://www.w3.org/services/html2txt?url=https://store.rg-adguard.net/api/GetFiles?type=url&url=https://www.microsoft.com/store/apps/9pgjgd53tn86
###
###
# convert google news to text
https://www.w3.org/services/html2txt?url=https://news.google.com
###
# nuget api test
@id = https://azuresearch-usnc.nuget.org/query
@QUERY = Microsoft.ServiceFabric.CollectSFData
@SKIP = 0
@TAKE = 10
@PRERELEASE = false
#@SEMVERLEVEL = {{}}
#@PACKAGETYPE = {{}}
GET {{id}}?q={{QUERY}}&skip={{SKIP}}&take={{TAKE}}&prerelease={{PRERELEASE}}
#&semVerLevel={SEMVERLEVEL}&packageType={PACKAGETYPE}
###
GET https://www.w3.org/services/html2txt?url=https://devblogs.microsoft.com/powershell/arm-dsc-extension-settings/
###
###
# SFRP
@cluster = sfjagilber1nt3
@location = eastus
@api = 6.0
@managementPort = 19080
@timeout = 1200
#https://{{cluster}}.{{location}}.cloudapp.azure.com:19080/$/BackupRestore/BackupPolicies?api-version={{api}}
#https://{{cluster}}.{{location}}.cloudapp.azure.com:19080/Applications/?api-version={{api}}
https://{{cluster}}.{{location}}.cloudapp.azure.com:19080/$/GetClusterManifest?api-version={{api}}&timeout={{timeout}} HTTP/1.1
#https://{{cluster}}.{{location}}.cloudapp.azure.com:{{managementPort}}/$/GetClusterHealth?api-version={{api}}
#https://{{cluster}}.{{location}}.cloudapp.azure.com:19080/Nodes/?api-version={{api}} HTTP/1.1
Accept: application/xml,application/json
#GET https://{{cluster}}.{{location}}.cloudapp.azure.com:{{managementPort}}/Explorer
###
###
@storageAccountName = sflogsxxxxxxxxxxxxxxxxxx
@tableSasToken = ?sv=2020-02-10&ss=bfqt&srt=sco&sp=rwdlacupx&se=2021-03-25T10:16:34Z&st=2021-03-25T02:16:34Z&spr=https&sig=DEIyaWBlIKe0Nru1ubEbb6u5t787LwoqQ5UVWgxMoJQ%3D
@storageObjectToQuery = fabriclog8de7b13a4137454a9ad5a356fa0c3159Api
https://{{storageAccountName}}.table.core.windows.net/{{storageObjectToQuery}}{{tableSasToken}}
###
GET https://localhost:5001/api/configurationJson HTTP/1.1
content-type: application/json
###
GET https://localhost:5001/api/configurationOptions HTTP/1.1
content-type: application/json
###
GET https://localhost:5001/api/configuration HTTP/1.1
content-type: application/json
###
POST https://localhost:5001/api/configuration/update HTTP/1.1
content-type: application/json
###
@storageAccountName =
@tableSasToken =
@storageObjectToQuery =
https://{{storageAccountName}}.table.core.windows.net/{{storageObjectToQuery}}{{tableSasToken}}
###
###
# arm query
@query =
@apiversion = 2021-01-01
GET https://management.azure.com/subscriptions/{{subscriptionId}}/{{query}}?api-version={{apiversion}}
Authorization: {{$aadToken}}
Accept: application/json
###
###
# sfrp query api list
# https://docs.microsoft.com/en-us/rest/api/servicefabric/sfrp-api-operations_list
@query = providers/Microsoft.ServiceFabric/operations
@apiversion = 2018-02-01
GET https://management.azure.com/{{query}}?api-version={{apiversion}}
#GET https://management.azure.com/subscriptions/{{subscriptionId}}/{{query}}?api-version={{apiversion}}
Authorization: {{$aadToken}}
Accept: application/json
###
###
# sfrp get cluster
# https://docs.microsoft.com/en-us/rest/api/servicefabric/sfrp-api-clusters_get
@query = providers/Microsoft.ServiceFabric/clusters/{{clusterName}}
@apiversion = 2018-02-01
@resourceGroupName = sfcluster
@clusterName = {{resourceGroupName}}
#GET https://management.azure.com/{{query}}?api-version={{apiversion}}
GET https://management.azure.com/subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/{{query}}?api-version={{apiversion}}
Authorization: {{$aadToken}}
Accept: application/json
###
# sfrp get available cluster versions
# https://docs.microsoft.com/en-us/rest/api/servicefabric/clusterversions/list
@apiversion = 2018-02-01
@location = eastus
GET https://management.azure.com/subscriptions/{{subscriptionId}}/providers/Microsoft.ServiceFabric/locations/{{location}}/clusterVersions?api-version={{apiversion}}
Authorization: {{$aadToken}}
Accept: application/json
###
# sfrp get available cluster version
# https://docs.microsoft.com/en-us/rest/api/servicefabric/clusterversions/get
@apiversion = 2018-02-01
@location = eastus
@clusterVersion = 7.2.432.9590
GET https://management.azure.com/subscriptions/{{subscriptionId}}/providers/Microsoft.ServiceFabric/locations/{{location}}/clusterVersions/{{clusterVersion}}?api-version={{apiversion}}
Authorization: {{$aadToken}}
Accept: application/json
###
PUT http://localhost:8080/api/Votes/dfff
###
GET http://localhost:8080
###
GET http://localhost:8080/api/Votes?c={{$timestamp}}
###
PUT http://localhost:19081/Voting/VotingData/api/VoteData/ddddd?PartitionKey=3&PartitionKind=Int64Range
###
PUT http://localhost:19964/Voting/VotingData/api/VoteData/ddddd?PartitionKey=3&PartitionKind=Int64Range
###
https://supportaction-prod.northeurope.cloudapp.azure.com/swagger/index.html HTTP/1.1
###
https://supportaction-prod.northeurope.cloudapp.azure.com/swagger/index.html
###
###
POST https://store.rg-adguard.net/api/GetFiles HTTP/1.1
content-type: application/x-www-form-urlencoded
type=PackageFamilyName
&url=Microsoft.WinDbg_8wekyb3d8bbwe
&ring=Retail
###