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: [
|
templateFunctions: [
|
||||||
{
|
{
|
||||||
name: "request.body.raw",
|
name: "request.body.raw",
|
||||||
|
description: "Access the entire request body, as text",
|
||||||
aliases: ["request.body"],
|
aliases: ["request.body"],
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
@@ -36,6 +37,7 @@ export const plugin: PluginDefinition = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "request.body.path",
|
name: "request.body.path",
|
||||||
|
description: "Access a field of the request body using JSONPath or XPath",
|
||||||
previewArgs: ["path"],
|
previewArgs: ["path"],
|
||||||
args: [
|
args: [
|
||||||
{ name: "requestId", label: "Http Request", type: "http_request" },
|
{ name: "requestId", label: "Http Request", type: "http_request" },
|
||||||
@@ -188,6 +190,7 @@ export const plugin: PluginDefinition = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "request.param",
|
name: "request.param",
|
||||||
|
description: "Read the value of a query parameter, by name",
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
name: "requestId",
|
name: "requestId",
|
||||||
@@ -230,6 +233,7 @@ export const plugin: PluginDefinition = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "request.name",
|
name: "request.name",
|
||||||
|
description: "Get the name of a request, or its URL if it has no name",
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
name: "requestId",
|
name: "requestId",
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ export const plugin: PluginDefinition = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "response.body.path",
|
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"],
|
aliases: ["response"],
|
||||||
previewArgs: ["path"],
|
previewArgs: ["path"],
|
||||||
args: [
|
args: [
|
||||||
|
|||||||
Reference in New Issue
Block a user