Skip to content

/AWS1/CL_AG2=>IMPORTAPI()

About ImportApi

Imports an API.

Method Signature

IMPORTING

Required arguments:

IV_BODY TYPE /AWS1/AG2__STRING /AWS1/AG2__STRING

The OpenAPI definition. Supported only for HTTP APIs.

Optional arguments:

IV_BASEPATH TYPE /AWS1/AG2__STRING /AWS1/AG2__STRING

Specifies how to interpret the base path of the API during import. Valid values are ignore, prepend, and split. The default value is ignore. To learn more, see Set the OpenAPI basePath Property. Supported only for HTTP APIs.

IV_FAILONWARNINGS TYPE /AWS1/AG2__BOOLEAN /AWS1/AG2__BOOLEAN

Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_AG2IMPORTAPIRESPONSE /AWS1/CL_AG2IMPORTAPIRESPONSE