Created
February 14, 2022 10:07
-
-
Save reevik/9eb28c1e8248372ff9c6d607854d4db3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestController | |
public class MatrixResource { | |
@RequestMapping(value="/{status}/ping", method=RequestMethod.GET) | |
public String pong( | |
@PathVariable("status") String status, | |
@MatrixVariable(name="name", pathVar="status", required=false) String name) { | |
return String.format("matrix variable name=%s", name); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment