Files
bruno/packages/bruno-tests/collection/scripting/api/req/getPath.bru
Pooja 91959ca942 feat: js api supports get path params (#5235) (#6764)
* feat: add URL helper methods to req API (getHost, getPath, getQueryString)

* fix
2026-01-21 18:13:40 +05:30

19 lines
243 B
Plaintext

meta {
name: getPath
type: http
seq: 1
}
get {
url: {{host}}/api/users/123
body: none
auth: none
}
tests {
test("req.getPath()", function() {
const path = req.getPath();
expect(path).to.equal("/api/users/123");
});
}