API 请求示例:https://www.sbsb.com/api/v250/animals/123456789/humans/987654321/transplant?$skip=0&$top=666&$orderby=animalAssociatedHumans/sortDate
是否有像 api//animals//humans/*/transplant?....../sortDate 这样的东西可以捕获所有具有“api”、“animals”的类似 API 请求, 'humans', 'transplant' 字眼在里面?
我在 cy.route('Get or Post', (url request: something I need), 'fixture:file') 中使用它
最佳答案
要捕获所有这些单词,允许它们之间提供提供的数字,并在 transplant
之后允许任意数量的内容,这应该可行:
cy.route("GET", "/api/*/animals/*/humans/*/transplant/**").as("getStuff")
关于javascript - 我如何查询一些与此字段具有相同字段的 API 请求?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52264917/