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.
- 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¶m2=X..."
Recent change notes
- Support for Spring Framework annotation: @RestController
- Support for Spring Framework 4.3 annotations: @GetMapping, @PostMapping, @PutMapping, @DeleteMapping, @PatchMapping
- Support for path and value.
- Bugs Fixing
- Adding support for methods with this annotation @RequestMapping(method = 'SOME_HTTP_METHOD')
- Adding support for @RequestParam("paramName") in methods
- Adding shortcut (control + alt + R)
General usage instructions
Donate with PayPal
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.