REST flow-node

The REST flow-node methods, parameters, and output are described in the following sections. The REST flow-node is created when NPM installs the nodehandler-rest code. The REST flow-node is included in the default application, but it can be removed.

Methods

The default methods for a REST flow-node are:

  • DELETE - Use DELETE APIs to delete resources.
  • GET - Use GET APIs to retrieve resources only and not to modify them in any way.
  • HEAD - Use HEAD APIs to request the headers that are returned if the specified resource would be requested with a GET API.
  • OPTIONS - Use OPTIONS APIs to determine the options and requirements associated with a resource.
  • PATCH - Use PATCH APIs to make partial updates on a resource.
  • POST - Use POST APIs to create new resources.
  • POST - Use PUT APIs primarily to update existing resources, if resource does not exist then API may decide to create a new resource or not.

Parameters

The REST flow-node parameters are described in the following sections.

DELETE parameters

The DELETE method parameters are:

Parameter Type Description Configuration selection
URL string The target URL. Selector, String
Follow redirect booleen Follow HTTP 3xx responses as redirects. Selector, Boolean
Headers object The HTTP headers to set. Selector, Object
Insecure boolean Do not require the SSL certificates to be valid. Selector, Boolean
Maximum redirects integer Maximum number of redirects before aborting. Selector, Number

The Follow redirect, Headers, Insecure, Maximum redirects parameters can be enabled or disabled.

GET parameters

The GET method parameters are:

Parameter Type Description Configuration selection
URL string The target URL. Selector, String
Follow redirect booleen Follow HTTP 3xx responses as redirects. Selector, Boolean
Headers object The HTTP headers to set. Selector, Object
Insecure boolean Do not require the SSL certificates to be valid. Selector, Boolean
Maximum redirects integer Maximum number of redirects before aborting. Selector, Number

The Follow redirect, Headers, Insecure, Maximum redirects parameters can be enabled or disabled.

HEAD parameters

The HEAD method parameters are:

Parameter Type Description Configuration selection
URL string The target URL. Selector, String
Follow redirect booleen Follow HTTP 3xx responses as redirects. Selector, Boolean
Headers object The HTTP headers to set. Selector, Object
Insecure boolean Do not require the SSL certificates to be valid. Selector, Boolean
Maximum redirects integer Maximum number of redirects before aborting. Selector, Number

The Follow redirect, Headers, Insecure, Maximum redirects parameters can be enabled or disabled.

OPTIONS parameters

The OPTIONS method parameters are:

Parameter Type Description Configuration selection
URL string The target URL. Selector, String
Follow redirect booleen Follow HTTP 3xx responses as redirects. Selector, Boolean
Headers object The HTTP headers to set. Selector, Object
Insecure boolean Do not require the SSL certificates to be valid. Selector, Boolean
Maximum redirects integer Maximum number of redirects before aborting. Selector, Number

The Follow redirect, Headers, Insecure, Maximum redirects parameters can be enabled or disabled.

PATCH parameters

The PATCH method parameters are:

Parameter Type Description Configuration selection
Body any The content to send. Selector, String, Number, Boolean, Object, Array, Null
URL string The target URL. Selector, String
Follow redirect booleen Follow HTTP 3xx responses as redirects. Selector, Boolean
Headers object The HTTP headers to set. Selector, Object
Insecure boolean Do not require the SSL certificates to be valid. Selector, Boolean
Maximum redirects integer Maximum number of redirects before aborting. Selector, Number

The Follow redirect, Headers, Insecure, Maximum redirects parameters can be enabled or disabled.

POST parameters

The POST method parameters are:

Parameter Type Description Configuration selection
Body any The content to send. Selector, String, Number, Boolean, Object, Array, Null
URL string The target URL. Selector, String
Follow redirect booleen Follow HTTP 3xx responses as redirects. Selector, Boolean
Headers object The HTTP headers to set. Selector, Object
Insecure boolean Do not require the SSL certificates to be valid. Selector, Boolean
Maximum redirects integer Maximum number of redirects before aborting. Selector, Number

The Follow redirect, Headers, Insecure, Maximum redirects parameters can be enabled or disabled.

PUT parameters

The PUT method parameters are:

Parameter Type Description Configuration selection
Body any The content to send. Selector, String, Number, Boolean, Object, Array, Null
URL string The target URL. Selector, String
Follow redirect booleen Follow HTTP 3xx responses as redirects. Selector, Boolean
Headers object The HTTP headers to set. Selector, Object
Insecure boolean Do not require the SSL certificates to be valid. Selector, Boolean
Maximum redirects integer Maximum number of redirects before aborting. Selector, Number

The Follow redirect, Headers, Insecure, Maximum redirects parameters can be enabled or disabled.

Outputs

The REST flow-node outputs are described in the following sections.

DELETE outputs

The DELETE method outputs are:

Output Type Description Save output value as:

2XX

object -

$.response

3XX

object -

$.response

4XX object - $.response
5XX object - $.response
Error any - $.error

GET outputs

The GET method outputs are:

Output Type Description Save output value as:

2XX

object -

$.response

3XX

object -

$.response

4XX object - $.response
5XX object - $.response
Error any - $.error

HEAD outputs

The HEAD method outputs are:

Output Type Description Save output value as:
2XX object - $.response
3XX object - $.response
4XX object - $.response
5XX object - $.response
Error any - $.error

OPTIONS outputs

The OPTIONS method outputs are:

Output Type Description Save output value as:

2XX

object -

$.response

3XX

object -

$.response

4XX object - $.response
5XX object - $.response
Error any - $.error

PATCH outputs

The PATCH method outputs are:

Output Type Description Save output value as:

2XX

object -

$.response

3XX

object -

$.response

4XX object - $.response
5XX object - $.response
Error any - $.error

POST outputs

The POST method outputs are:

Output Type Description Save output value as:

2XX

object -

$.response

3XX

object -

$.response

4XX object - $.response
5XX object - $.response
Error any - $.error

PUT outputs

The PUT method outputs are:

Output Type Description Save output value as:

2XX

object -

$.response

3XX

object -

$.response

4XX object - $.response
5XX object - $.response
Error any - $.error

Related Links