Overview
...
RestClient Rest.Create(url: string)
...
RestClient Rest.Create(url: string, service: string)
...
RestClient Rest. myRest.Create(url: string, service: string, scope: string)
...
RestClient Rest.Create(url: string, service: string, scope: string, identity: string)
Arguments
...
string identity
Identity to impersonate
Example
Code Block | ||
---|---|---|
| ||
var client = $Rest.Create('http://targetserver');
var request = client.Request();
request.AddParameter('x', 1);
var response = request.Execute(); |
Example
...
language | js |
---|
...
Remarks
Service, scope and identity parameters are optional. If not specified rest client is not authenticated.
Example
Code Block | ||
---|---|---|
| ||
var client = $Rest.Create('http://targetserver'); var request = client.Request(); request.AddParameter('x', 1); var response = request.Execute(); |
Example
Code Block | ||
---|---|---|
| ||
var client = $Rest.Create('http://targetserver');
var request = client.Request();
request.AddParameter('x', 1);
var response = request.Execute(); |
Examples
...
language | js |
---|
...