Copy REST Url

Compatible with IntelliJ IDEA
Jun 27, 2017
1 385
Copy REST Url will copy REST url from a Spring @Controller or @RestController method.
Just right-click on the method, and select "Copy REST Url" and it will copy the url to the clipboard.
You can also use ctrl + alt + R shortcut over the method name. Then you can paste it on the browser or anywhere you want.

Features:
- If your application is using Spring-Boot and you have an application.properties file, it will look for these 2 keys: server.port, server.contextPath. And if they are found, it will add those values to the final url.
- The plugin will only be available for methods with @RequestMapping, @GetMapping, @PostMapping, @PutMapping, @DeleteMapping, @PatchMapping annotation.
- Works for any http method.
- For GET methods, it will include query string on the url, like this: "?param1=X&param2=X..."

Download plugin

Recent change notes

1.5
- Support for Spring Framework annotation: @RestController
1.4
- Support for Spring Framework 4.3 annotations: @GetMapping, @PostMapping, @PutMapping, @DeleteMapping, @PatchMapping
- Support for path and value.
1.3
- Bugs Fixing
1.2
- Adding support for methods with this annotation @RequestMapping(method = 'SOME_HTTP_METHOD')
1.1
- Adding support for @RequestParam("paramName") in methods
- Adding shortcut (control + alt + R)

General usage instructions

Right-click on the method, and select "Copy REST Url" and it will copy the url to the clipboard or use the shortcut control + alt + R.