Skip to content

Commit

Permalink
增加 IDEA HTTP Client 示例代码
Browse files Browse the repository at this point in the history
  • Loading branch information
YunaiV committed Dec 19, 2020
1 parent bfc48cf commit 5c3eb27
Show file tree
Hide file tree
Showing 61 changed files with 779 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
* [《性能测试 —— Tomcat、Jetty、Undertow 基准测试》](http://www.iocoder.cn/Performance-Testing/Tomcat-Jetty-Undertow-benchmark/?github) 对应 [lab-05-benchmark-tomcat-jetty-undertow](https://github.com/YunaiV/SpringBoot-Labs/tree/master/lab-05-benchmark-tomcat-jetty-undertow)
* [《性能测试 —— SpringMVC、Webflux 基准测试》](http://www.iocoder.cn/Performance-Testing/SpringMVC-Webflux-benchmark/?github) 对应 [lab-06](https://github.com/YunaiV/SpringBoot-Labs/tree/master/lab-06)
* [《芋道 Spring Boot API 接口文档 JApiDocs 入门》](http://www.iocoder.cn/Spring-Boot/JApiDocs/?github) 对应 [lab-24](https://github.com/YunaiV/SpringBoot-Labs/tree/master/lab-24)
* [《芋道 Spring Boot API 接口调试 IDEA HTTP Client》](http://www.iocoder.cn/Spring-Boot/IDEA-HTTP-Client/?github) 对应 [lab-71-http-debug](https://github.com/YunaiV/SpringBoot-Labs/blob/master/lab-71-http-debug/)

## RPC 开发

Expand Down
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T004250.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
7 changes: 7 additions & 0 deletions httpRequests/2020-12-20T004328.500.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timestamp": "2020-12-19T16:43:28.332+0000",
"status": 500,
"error": "Internal Server Error",
"message": "小朋友,你的账号密码不正确哟!",
"path": "/user/login"
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T004337.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T004347.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
7 changes: 7 additions & 0 deletions httpRequests/2020-12-20T004347.500.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timestamp": "2020-12-19T16:43:47.777+0000",
"status": 500,
"error": "Internal Server Error",
"message": "小朋友,你的账号密码不正确哟!",
"path": "/user/login"
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T004358.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
7 changes: 7 additions & 0 deletions httpRequests/2020-12-20T004358.500.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timestamp": "2020-12-19T16:43:58.210+0000",
"status": 500,
"error": "Internal Server Error",
"message": "小朋友,你的账号密码不正确哟!",
"path": "/user/login"
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T004401.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
7 changes: 7 additions & 0 deletions httpRequests/2020-12-20T004401.500.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timestamp": "2020-12-19T16:44:01.275+0000",
"status": 500,
"error": "Internal Server Error",
"message": "小朋友,你的账号密码不正确哟!",
"path": "/user/login"
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T004538.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
7 changes: 7 additions & 0 deletions httpRequests/2020-12-20T004547.500.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timestamp": "2020-12-19T16:45:47.364+0000",
"status": 500,
"error": "Internal Server Error",
"message": "小朋友,你的账号密码不正确哟!",
"path": "/user/login"
}
7 changes: 7 additions & 0 deletions httpRequests/2020-12-20T004638.500.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timestamp": "2020-12-19T16:46:38.505+0000",
"status": 500,
"error": "Internal Server Error",
"message": "小朋友,你的账号密码不正确哟!",
"path": "/user/login"
}
7 changes: 7 additions & 0 deletions httpRequests/2020-12-20T004645.500.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timestamp": "2020-12-19T16:46:45.875+0000",
"status": 500,
"error": "Internal Server Error",
"message": "小朋友,你的账号密码不正确哟!",
"path": "/user/login"
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T004809.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
7 changes: 7 additions & 0 deletions httpRequests/2020-12-20T004813.500.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timestamp": "2020-12-19T16:48:13.674+0000",
"status": 500,
"error": "Internal Server Error",
"message": "小朋友,你的账号密码不正确哟!",
"path": "/user/login"
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T010724.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T010738.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T010809.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
7 changes: 7 additions & 0 deletions httpRequests/2020-12-20T010823.500.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timestamp": "2020-12-19T17:08:23.036+0000",
"status": 500,
"error": "Internal Server Error",
"message": "小朋友,你的账号密码不正确哟!",
"path": "/user/login"
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T010840.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
7 changes: 7 additions & 0 deletions httpRequests/2020-12-20T011020.500.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timestamp": "2020-12-19T17:10:20.615+0000",
"status": 500,
"error": "Internal Server Error",
"message": "小朋友,你的账号密码不正确哟!",
"path": "/user/login"
}
7 changes: 7 additions & 0 deletions httpRequests/2020-12-20T011347.500.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timestamp": "2020-12-19T17:13:47.777+0000",
"status": 500,
"error": "Internal Server Error",
"message": "小朋友,你没有登录哟!",
"path": "/user/get-current"
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T011526.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
5 changes: 5 additions & 0 deletions httpRequests/2020-12-20T011530.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"gender": 1,
"nickname": "芋道源码",
"id": 1
}
7 changes: 7 additions & 0 deletions httpRequests/2020-12-20T011541.400.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timestamp": "2020-12-19T17:15:40.992+0000",
"status": 400,
"error": "Bad Request",
"message": "Missing request header 'Authorization' for method parameter of type String",
"path": "/user/get-current"
}
7 changes: 7 additions & 0 deletions httpRequests/2020-12-20T011551.500.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timestamp": "2020-12-19T17:15:51.919+0000",
"status": 500,
"error": "Internal Server Error",
"message": "小朋友,你没有登录哟!",
"path": "/user/get-current"
}
5 changes: 5 additions & 0 deletions httpRequests/2020-12-20T011556.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"gender": 1,
"nickname": "芋道源码",
"id": 1
}
5 changes: 5 additions & 0 deletions httpRequests/2020-12-20T011628-1.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"gender": 1,
"nickname": "芋道源码",
"id": 1
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T011628.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T011646.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T011650.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
7 changes: 7 additions & 0 deletions httpRequests/2020-12-20T011653.500.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timestamp": "2020-12-19T17:16:53.489+0000",
"status": 500,
"error": "Internal Server Error",
"message": "小朋友,你没有登录哟!",
"path": "/user/get-current"
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T011818.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T011843.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
7 changes: 7 additions & 0 deletions httpRequests/2020-12-20T011847.500.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timestamp": "2020-12-19T17:18:47.862+0000",
"status": 500,
"error": "Internal Server Error",
"message": "小朋友,你没有登录哟!",
"path": "/user/get-current"
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T012507.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
5 changes: 5 additions & 0 deletions httpRequests/2020-12-20T012510.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"gender": 1,
"nickname": "芋道源码",
"id": 1
}
5 changes: 5 additions & 0 deletions httpRequests/2020-12-20T012527.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"gender": 1,
"nickname": "芋道源码",
"id": 1
}
7 changes: 7 additions & 0 deletions httpRequests/2020-12-20T012540.400.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timestamp": "2020-12-19T17:25:40.604+0000",
"status": 400,
"error": "Bad Request",
"message": "Missing request header 'Authorization' for method parameter of type String",
"path": "/user/get-current"
}
5 changes: 5 additions & 0 deletions httpRequests/2020-12-20T012544.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"gender": 1,
"nickname": "芋道源码",
"id": 1
}
7 changes: 7 additions & 0 deletions httpRequests/2020-12-20T012703.500.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timestamp": "2020-12-19T17:27:03.272+0000",
"status": 500,
"error": "Internal Server Error",
"message": "小朋友,你没有登录哟!",
"path": "/user/get-current"
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T012708.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
5 changes: 5 additions & 0 deletions httpRequests/2020-12-20T012710.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"gender": 1,
"nickname": "芋道源码",
"id": 1
}
5 changes: 5 additions & 0 deletions httpRequests/2020-12-20T013544.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"gender": 1,
"nickname": "芋道源码",
"id": 1
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T013552.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
7 changes: 7 additions & 0 deletions httpRequests/2020-12-20T013558.500.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timestamp": "2020-12-19T17:35:58.033+0000",
"status": 500,
"error": "Internal Server Error",
"message": "小朋友,你没有登录哟!",
"path": "/user/get-current"
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T013845.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
5 changes: 5 additions & 0 deletions httpRequests/2020-12-20T014019.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"gender": 1,
"nickname": "芋道源码",
"id": 1
}
4 changes: 4 additions & 0 deletions httpRequests/2020-12-20T021415.200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"userId": 1,
"token": "token001"
}
1 change: 1 addition & 0 deletions httpRequests/http-client.cookies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# domain path name value date
Loading

0 comments on commit 5c3eb27

Please sign in to comment.