Skip to content

Get Model Template

apigateway_get_model_template R Documentation

Generates a sample mapping template that can be used to transform a payload into the structure of a model

Description

Generates a sample mapping template that can be used to transform a payload into the structure of a model.

Usage

apigateway_get_model_template(restApiId, modelName)

Arguments

restApiId

[required] The string identifier of the associated RestApi.

modelName

[required] The name of the model for which to generate a template.

Value

A list with the following syntax:

list(
  value = "string"
)

Request syntax

svc$get_model_template(
  restApiId = "string",
  modelName = "string"
)