+ 实现基础 web 服务,提供 /ping、/list、/stop 路由
This commit is contained in:
34
src/main.http
Normal file
34
src/main.http
Normal file
@@ -0,0 +1,34 @@
|
||||
@url=http://localhost:12340
|
||||
@accept=Accept: application/json
|
||||
@content-type=Content-Type: application/json
|
||||
|
||||
|
||||
###
|
||||
GET {{url}}/ping
|
||||
{{accept}}
|
||||
|
||||
###
|
||||
GET {{url}}/list
|
||||
{{accept}}
|
||||
|
||||
###
|
||||
GET {{url}}/list?name=notepad
|
||||
{{accept}}
|
||||
|
||||
###
|
||||
GET {{url}}/listps
|
||||
{{accept}}
|
||||
|
||||
###
|
||||
GET {{url}}/listps?name=Notepad
|
||||
{{accept}}
|
||||
|
||||
###
|
||||
POST {{url}}/stop
|
||||
{{accept}}
|
||||
{{content-type}}
|
||||
|
||||
{
|
||||
"Id": 4900,
|
||||
"ProcessName": "Taskmgr"
|
||||
}
|
||||
Reference in New Issue
Block a user