-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathapiservice.http
More file actions
101 lines (72 loc) · 2.13 KB
/
apiservice.http
File metadata and controls
101 lines (72 loc) · 2.13 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
### BuildWithAspire API Service
### Base URL: https://localhost:7287 or http://localhost:5020
@baseUrl = https://localhost:7287
@apiBaseUrl = http://localhost:5020
### Health Check
GET {{baseUrl}}/health
### === MCP Tool Integration ===
### List All Available MCP Tools
GET {{baseUrl}}/mcp/tools
### Get MCP Tools Metadata
GET {{baseUrl}}/mcp/tools/metadata
### Call Current Weather Tool (camelCase as per MCP SDK)
POST {{baseUrl}}/mcp/call/getCurrentWeather
Content-Type: application/json
{}
### Call Weather Forecast Tool (camelCase as per MCP SDK)
POST {{baseUrl}}/mcp/call/getWeatherForecast
Content-Type: application/json
{
"maxDays": 5
}
### Call Weather Forecast Tool (7 days)
POST {{baseUrl}}/mcp/call/getWeatherForecast
Content-Type: application/json
{
"maxDays": 7
}
### Call Temperature Conversion Tool (camelCase as per MCP SDK)
POST {{baseUrl}}/mcp/call/convertTemperature
Content-Type: application/json
{
"temperature": 25,
"fromUnit": "C"
}
### Call System Info Tool (camelCase as per MCP SDK)
POST {{baseUrl}}/mcp/call/getSystemInfo
Content-Type: application/json
{}
### Call Random Number Tool (camelCase as per MCP SDK)
POST {{baseUrl}}/mcp/call/generateRandomNumber
Content-Type: application/json
{
"min": 1,
"max": 100
}
### Chat (legacy endpoint)
GET {{baseUrl}}/chat?message=Hello, how is the weather today?
### === Conversation Management ===
### Get All Conversations
GET {{baseUrl}}/conversations
### Create New Conversation
POST {{baseUrl}}/conversations
Content-Type: application/json
{
"name": "Test Conversation"
}
### Get Specific Conversation (replace with actual ID)
@conversationId = 12345678-1234-1234-1234-123456789012
GET {{baseUrl}}/conversations/{{conversationId}}
### Send Message to Conversation
POST {{baseUrl}}/conversations/{{conversationId}}/messages
Content-Type: application/json
{
"message": "What's the weather like today?"
}
### Delete Conversation
DELETE {{baseUrl}}/conversations/{{conversationId}}
### === OpenAPI Documentation ===
### Get OpenAPI Specification
GET {{baseUrl}}/openapi/v1.json
### Scalar API Documentation (Development only)
### Visit in browser: {{baseUrl}}/scalar/v1