我正在寻找在“getStudentById”资源中动态访问资源的路径。例如,如果服务被称为“ http://localhost:9090/studentfinder/student/0989898 ”。我想要 '/student/0989898' 部分。
@http:ResourceConfig {
methods: ["GET"],
path: "/student/{studentId}"
}
getStudentById(endpoint client, http:Request req, string studentId) {
...
}