Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This feature was introduced in Winter 2021

Service templates allow you to create starters for new services. Most services you will deploy on your gateway share boilerplate code that is almost the same throughout the board. Using the API Gateway Manager you can create templates that contain common fragments and have variables that can be replaced upon deploying new services based on this template. To make the template more versatile you can define blocks of assertion that are included or excluded based on choices presented to the user during service creation.

...

As you may have noticed you can assign a group to variables and blocks. This can be used to group settings that have a common theme. WIthin a group the blocks and variables are ordered the same way they are in the JSON definition.

Data Types

Type

Description

string

This datatype acts like a normal string. Please be advised that its inserted as it is. Which means that no base64 transformation happens. This datatype is not allowed to contain XML or HTML.

integer

A number without a fractional component (i.e. 5)

float

A number with a fractional component (i.e. 5.25)

date

A date value without time information

time

A time (formatted according to the format defined in the configuration)

datetime

A date value with time information

rawstring

In contrast to the string data type, this type allows any string, including XML or HTML.

select

A list of options. The value that is inserted and the text that is shown can be different from each other.

Modifiers

Modifiers define additional constraints for the entered values.

Modifier

Description

required

true / false. If a variable is declared to be required it will not be possible to create a new service if no value is entered in the variable.

XML Policy Definition with placeholders to work with JSON Definition

...