mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-09-15 06:11:48 +02:00
Describe the request template functions (#655)
This commit is contained in:
@@ -14,6 +14,7 @@ export const plugin: PluginDefinition = {
|
||||
templateFunctions: [
|
||||
{
|
||||
name: "request.body.raw",
|
||||
description: "Access the entire request body, as text",
|
||||
aliases: ["request.body"],
|
||||
args: [
|
||||
{
|
||||
@@ -36,6 +37,7 @@ export const plugin: PluginDefinition = {
|
||||
},
|
||||
{
|
||||
name: "request.body.path",
|
||||
description: "Access a field of the request body using JSONPath or XPath",
|
||||
previewArgs: ["path"],
|
||||
args: [
|
||||
{ name: "requestId", label: "Http Request", type: "http_request" },
|
||||
@@ -188,6 +190,7 @@ export const plugin: PluginDefinition = {
|
||||
},
|
||||
{
|
||||
name: "request.param",
|
||||
description: "Read the value of a query parameter, by name",
|
||||
args: [
|
||||
{
|
||||
name: "requestId",
|
||||
@@ -230,6 +233,7 @@ export const plugin: PluginDefinition = {
|
||||
},
|
||||
{
|
||||
name: "request.name",
|
||||
description: "Get the name of a request, or its URL if it has no name",
|
||||
args: [
|
||||
{
|
||||
name: "requestId",
|
||||
|
||||
@@ -111,7 +111,7 @@ export const plugin: PluginDefinition = {
|
||||
},
|
||||
{
|
||||
name: "response.body.path",
|
||||
description: "Access a field of the response body using JsonPath or XPath",
|
||||
description: "Access a field of the response body using JSONPath or XPath",
|
||||
aliases: ["response"],
|
||||
previewArgs: ["path"],
|
||||
args: [
|
||||
|
||||
Reference in New Issue
Block a user