【发布时间】:2018-05-22 16:24:48
【问题描述】:
我希望在“getStudentById”资源中动态访问资源的路径。例如如果服务被称为“http://localhost:9090/studentfinder/student/0989898”。我想要 '/student/0989898' 部分。
@http:ResourceConfig {
methods: ["GET"],
path: "/student/{studentId}"
}
getStudentById(endpoint client, http:Request req, string studentId) {
...
}
【问题讨论】:
标签: ballerina