# fast-request
**Repository Path**: dongxc666/fast-request
## Basic Information
- **Project Name**: fast-request
- **Description**: Fast Request 是一个基于 springmvc 的帮助你快速生成 url 和参数的插件
- **Primary Language**: Java
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: https://www.oschina.net/p/fast-request
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 4
- **Created**: 2021-08-25
- **Last Updated**: 2021-08-25
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Fast Request
[![Jetbrains Plugins][plugin-img]][plugin]



**Fast Request** is a plugin based on springmvc that help you quickly generate **url** and **params**.It is also a http client tool.
Just press the shortcut key, Plugin will give you the url and params, Then click Send Request button to complete the http request
The plugin UI references [Paw](https://paw.cloud/)
If you think this plugin help you, please **🌟Star** project, and also welcome to provide excellent pull request

- document
* [中文文档](README.zh_CN.md)
* [English Document](README.md)
QQ group:754131222
## 1.Install
**using IDE plugin system**
- Preferences(Settings) > Plugins > Browse repositories... > find"Fast Request" > Install Plugin
**Manual:**
- download[`lastest plugin zip`][latest-release] -> Preferences(Settings) > Plugins > Install plugin from disk...
## 2.Default shortcut key
recommend way:just click FastRequest icon

|key|scope|description|
| --- | --- | --- |
| ctrl \ | method(just put the cursor on method) | Generate the url and request parameters of the current method |
if it doesn't work,you can search Generate URL and Param in key map and change the key
modify key:Preferences(Settings) > Keymap
other way:Code(Toolbar) > Generate > Generate URL and Param
## 3.config and usage
### 3.1 common config
|config name|description|
| --- | --- |
|ProjectName|project name,Example:**user**、**order**,Please make sure there must be a project before adding env|
|Env|environment Name,Example:**local**、**develop**、**test**、**produce**|
|Domain|add the domain url in table|

### 3.2 Data Mapping
|config name|description|
| --- | --- |
|Random String Length|Random string length,default 5|
|Custom Data Mapping|If you want a class to parse only the fields you want,then you can add custom mapping configuration|
|Default Data Mapping|Default type of relational mapping,That is, the type is converted to the corresponding value|

#### 3.2.1 Custom Data Mapping
**Java Type**is the corresponding object type,must contain package name and class name
Example:`com.baomidou.mybatisplus.extension.plugins.pagination.Page`
**Default value**must be in json format,
Example:
```
{"size":10,"current":1}
```
## 4.Tips
1. The parameter Table supports value modification, the URL will change when Path Param Table params has been modified.
2. Url Param、JSON、Form URL-Encoded Table support parameter modification,after modify,text tab parameters will also change accordingly,**right click in textarea to copy parameters**
## 5.Type Icon Mapping
icon and type mapping
|Icon|Type|
| --- | --- |
| |Array |
| |Object |
| |Number |
| |String |
||Boolean|
## 6.Updates
- v1.1.3
* url on controller can replace fixed variable with another by config
* add some guide
* show tool window when click generate icon
- v1.1.2(2021.07.01)
* add line icon for method
* limit send button click frequency
* optimize response show large text
- v1.1.1(2021.06.28)
* params can delete batch
* fix some bugs
- v1.1.0(2021.06.25)
* support http request
* support modify and add params
* beautify ui
* fix some bugs
- v1.0.0(2021.06.09)
* support generate url and param
* support custom domain
* support custom params
## 7.Donate
If you think the plug-in is great and saves you a lot of time, then invite the author to have a cup of coffee~☕☕☕,thank you very much!
|  |  |
| --- | --- |
## 8.Plan
I very hope you can help build follow-up functions.Provide good idea and provide good PR!
[latest-release]: https://github.com/kings1990/fast-request/releases/latest
[plugin]: https://plugins.jetbrains.com/plugin/16988
[plugin-img]: https://img.shields.io/badge/plugin-FastRequest-x.svg