Hybrid Integration 10.5 | Integrating On-Premises Applications | Integration Server Built-In Services | Client Folder | pub.client:restClient
 
pub.client:restClient
WmPublic. Creates and sends REST API requests over HTTP or HTTPS. Integration Server generates the REST connector services while creating a consumer REST API descriptor and calls this service while executing any REST connector service.
Input Parameters
path
String Relative path of the individual endpoints of the REST API.
httpMethod
String Specifies the HTTP method you want to use. Valid values are:
get
post
put
delete
patch
options
head
body
Document Optional. Body of the REST API request.
scheme
String Transfer protocol that you want to use to send the REST API request. Valid values are:
http
https
produces
String Optional. MIME media type the REST operation can produce and send back to the REST client. Valid values are:
application/xml
application/json
consumes
String Optional. MIME media type the REST operation can consume or accept from the REST client. Valid values are:
application/xml
application/json
basePath
String Optional. Base path on which the REST API is served, which is relative to the host. If base path is not included, the REST API is served directly under the host. The path must begin with a “/” (slash).
auth
Document Optional. Authorization information that this service submits to the server.
Key
Description
type
String Type of authentication scheme that you want this service to use. Set to:
BASIC: to submit a user name and password. This is the default.
username
String User name that this service will submit when requesting a protected resource. Required only when type is set to Basic.
password
String Password associated with username. Required only when type is set to Basic.
params
Document Optional. All path parameters must be added under this document as key value pairs.
Key
Description
path
Document Optional. Path parameters of the REST API request.
query
Document Optional. Query parameters of the REST API request.
form
Document Optional. Form parameters of the REST API request.
header
Document Optional. Headers from the REST API request and responses.
host
String Host serving the REST API.
Output Parameters
code
String HTTP code of the REST API response.
phrase
String HTTP message of the REST API response.
response
Object Optional. Body of the REST API response as a document or document list.

Copyright © 2015- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.