-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.http
More file actions
117 lines (113 loc) · 2.34 KB
/
test.http
File metadata and controls
117 lines (113 loc) · 2.34 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
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
###
#
# {{ $dotenv _CLIENT_SECRET }}
#
@GATEWAY_URL = http://localhost:8088
@GOSPORTSAGENT_URL = {{GATEWAY_URL}}/api/gosportsagent
@ODDSTRACKER_URL = {{GATEWAY_URL}}/api/oddstracker
@ROTOREADER_URL = {{GATEWAY_URL}}/api/rotoreader
@PROMETHEUS_URL = http://localhost:30090
#
#
###
################################ Gateway ################################
# Gateway API Docs
GET {{GATEWAY_URL}}/api-docs
###
# Aggregate API Docs
GET {{GATEWAY_URL}}/swagger-ui.html
###
#
#
################################ HealthChecks ################################
# Health Check API - gosportsagent
GET {{GOSPORTSAGENT_URL}}/healthz
###
# Health Check API - oddstracker
GET {{ODDSTRACKER_URL}}
###
# Health Check API - rotoreader
GET {{ROTOREADER_URL}}
###
#
#
#
################################ Go SportsAgent ################################
#
# Get Declared tools
GET {{GOSPORTSAGENT_URL}}/tools
###
#
# Query - tools
# GET {{GOSPORTSAGENT_URL}}/query?
###
# Query - tools
POST {{GOSPORTSAGENT_URL}}/query HTTP/1.1
content-type: application/json
{
"query": "List what tools do you have defined?"
}
###
# Query - feeds
POST {{GOSPORTSAGENT_URL}}/query HTTP/1.1
content-type: application/json
{
"query": "Get the most recent feed data to identify a team of subject, then list the odds of event the team has coming up"
}
###
# Prometheus metrics
GET {{GOSPORTSAGENT_URL}}/metrics
###
#
#
################################ oddstracker ################################
#
#
# Get docs
GET {{ODDSTRACKER_URL}}/openapi.json
###
PUT {{ODDSTRACKER_URL}}/collect?provider_key=kambi
#
###
PUT {{ODDSTRACKER_URL}}/collect?provider_key=theoddsapi
#
###
GET {{ODDSTRACKER_URL}}/event
###
# Test Prometheus Endpoint
GET {{ODDSTRACKER_URL}}/metrics
###
# Get docs
GET {{ODDSTRACKER_URL}}/docs
###
# Get changes
GET {{ODDSTRACKER_URL}}/linemoves
###
#
#
#
#
################################ rotoreader ################################
#
#
#
###
GET {{ROTOREADER_URL}}/feed?size=1
###
PUT {{ROTOREADER_URL}}/collect
###
# Get docs
GET {{ROTOREADER_URL}}/openapi.json
###
#
# Prometheus
GET {{PROMETHEUS_URL}}/api/v1/query?query=up
###
# GET {{PROMETHEUS_URL}}/api/v1/query?query={namespace="sportsstack"}
GET {{PROMETHEUS_URL}}/api/v1/query?query=%7Bnamespace%3D%22sportsstack%22%7D
###
GET {{PROMETHEUS_URL}}/api/v1/query?query=http_requests_total
#
###
GET {{PROMETHEUS_URL}}/api/v1/query?query=go_goroutines
###