我在URL下面有一个资源。
Get URL = /class/{name}/" + "/student" + "{path: (?:/count|)}" + "/details
Post URL = /class/abc/student/details
Post URL = /class/abc/student/count/details
我使用上面的URL编写了测试用例。
1. Get /class/abc/student/details
2. Get /class/abc/student/count/details
3. Put /class/abc/student/details
4. Put /class/abc/student/count/details
测试用例1和2通过。但对于测试案例3和4,不允许" 405方法"。