diff --git a/test/api/fastapi.http b/test/api/fastapi.http index 8f7ab36..ebba62d 100644 --- a/test/api/fastapi.http +++ b/test/api/fastapi.http @@ -1,75 +1,72 @@ @baseUrl = http://101.89.108.122:8000 +@sessionId = a1103 +@timeStamp = 202603310303 +### -GET http://127.0.0.1:8080 +GET {{baseUrl}} HTTP/1.1 200 - OK -date: Wed, 17 Jun 2026 00:37:02 GMT +date: Thu, 18 Jun 2026 02:37:30 GMT server: uvicorn content-length: 32 content-type: application/json connection: close ### -POST http://127.0.0.1:8080/chat +POST {{baseUrl}}/chat?stream=true content-type: application/json { - "sessionId": "a1100", - "timeStamp": "202503310303", - "text": "继续", - "needFormTags": true + "sessionId": "{{sessionId}}", + "timeStamp": "{{timeStamp}}", + "text": "两车追尾", + "needFormUpdate": true, + "useTextChunk": true } HTTP/1.1 200 - OK -date: Wed, 17 Jun 2026 00:37:26 GMT +date: Thu, 18 Jun 2026 02:40:12 GMT server: uvicorn -content-length: 274 -content-type: application/json +content-type: text/event-stream; charset=utf-8 connection: close +transfer-encoding: chunked ### -POST http://127.0.0.1:8080/get_info +POST {{baseUrl}}/get_info content-type: application/json { - "sessionId": "a1002", - "timeStamp": "202503310303", + "sessionId": "{{sessionId}}", + "timeStamp": "{{timeStamp}}", "key": "hphm1" } HTTP/1.1 200 - OK -date: Wed, 17 Jun 2026 00:27:12 GMT +date: Thu, 18 Jun 2026 02:41:06 GMT server: uvicorn -content-length: 108 +content-length: 97 content-type: application/json connection: close ### -POST http://127.0.0.1:8080/set_info +POST {{baseUrl}}/set_info content-type: application/json { - "sessionId": "a1002", - "timeStamp": "202503310303", + "sessionId": "{{sessionId}}", + "timeStamp": "{{timeStamp}}", "key": "hphm1", "value": "沪A8939" } - -HTTP/1.1 200 - OK -connection: close -content-length: 70 -content-type: application/json -date: Thu, 08 Jan 2026 09:27:00 GMT -server: uvicorn ### -DELETE http://127.0.0.1:8080/delete_session +DELETE {{baseUrl}}/delete_session content-type: application/json { - "sessionId": "a1002", - "timeStamp": "202503310303" + "sessionId": "{{sessionId}}", + "timeStamp": "{{$timestamp}}" } HTTP/1.1 200 - OK -connection: close -content-length: 70 +date: Thu, 18 Jun 2026 02:37:48 GMT +server: uvicorn +content-length: 71 content-type: application/json -date: Thu, 08 Jan 2026 09:27:24 GMT -server: uvicorn \ No newline at end of file +connection: close \ No newline at end of file