docs: update wg-basic/remote-rest

This commit is contained in:
Administrator 2021-10-09 10:04:40 +00:00 committed by John Smith
parent 8eb5eb6e0d
commit 748e1304bf

View File

@ -2,7 +2,7 @@
title: 8.REST远程调用工具 title: 8.REST远程调用工具
description: REST远程调用工具 description: REST远程调用工具
published: true published: true
date: 2021-10-09T10:04:17.399Z date: 2021-10-09T10:04:39.080Z
tags: wg-basic, remote tags: wg-basic, remote
editor: markdown editor: markdown
dateCreated: 2021-09-20T08:24:01.498Z dateCreated: 2021-09-20T08:24:01.498Z
@ -40,9 +40,9 @@ dateCreated: 2021-09-20T08:24:01.498Z
|名称|参数|位置|说明|示例| |名称|参数|位置|说明|示例|
|-|-|-|-|-| |-|-|-|-|-|
|@RemoteHeaderParams|header内容|参数|发送请求时会将参数自动添加到header中一颗有多个如果重复以最后一个为准| `@RemoteHeaderParams("h1") String h1` | |@RemoteHeaderParams|header内容|参数|发送请求时会将参数自动添加到header中一颗有多个如果重复以最后一个为准| `@RemoteHeaderParams("h1") String h1` |
|@RemotePathParams|path参数|参数|路径中的参数值数量应与路径中变量一致不能有重复值请求时会自动替换URLEncode编码对参数编码| `@RemotePathParams("p1") String p1` | |@RemotePathParams|path参数|参数|路径中的参数值数量应与路径中变量一致不能有重复值请求时会自动替换URLEncode对参数编码| `@RemotePathParams("p1") String p1` |
|@RemoteQueryParams|请求参数|参数|请求时的参数可以有多个重复以最后一个为准URLEncode编码对参数编码| `@RemotePathParams("q1") String q1` | |@RemoteQueryParams|请求参数|参数|请求时的参数可以有多个重复以最后一个为准URLEncode对参数编码| `@RemotePathParams("q1") String q1` |
|@RemoteQueryParamsMap|query参数集合|参数|请求时参数的HashMap集合重复以最后一个为准该参数可与 **@RemoteQueryParams** 共同使用,也可以单独使用,相当于 **@RemoteQueryParams** 参数集合URLEncode编码对参数编码| `@RemoteQueryParamsMap Map<String, Object> params` | |@RemoteQueryParamsMap|query参数集合|参数|请求时参数的HashMap集合重复以最后一个为准该参数可与 **@RemoteQueryParams** 共同使用,也可以单独使用,相当于 **@RemoteQueryParams** 参数集合URLEncode对参数编码| `@RemoteQueryParamsMap Map<String, Object> params` |
|@RemoteServerParams|服务地址|参数|该参数 **必填**需以http或https开头| `@RemoteServerParams String server` | |@RemoteServerParams|服务地址|参数|该参数 **必填**需以http或https开头| `@RemoteServerParams String server` |
|@RemoteFormParams|表单参数|参数|POST提交表单可以有多个**@RemoteJsonBodyParams** 不能一起使用| `@RemoteServerParams String server` | |@RemoteFormParams|表单参数|参数|POST提交表单可以有多个**@RemoteJsonBodyParams** 不能一起使用| `@RemoteServerParams String server` |
|@RemoteJsonBodyParams|Json对象|参数|该参数在POST或PUT请求时必填类型为Object| `@RemoteJsonBodyParams User user` | |@RemoteJsonBodyParams|Json对象|参数|该参数在POST或PUT请求时必填类型为Object| `@RemoteJsonBodyParams User user` |