Overview
...
RestClient Rest.Create(url: string)
...
RestClient Rest.Create(url: string, service: string)
...
RestClient Rest.Create(url: string, service: string, scope: string)
...
RestClient Rest. myRest.Create(url: string, service: string, scope: string, identity: string)
...
Code Block | ||
---|---|---|
| ||
var client = $Rest.Create('http://targetserver'); var request = client.Request(); request.AddParameter('x', 1); var response = request.Execute(); |
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(); |
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(); |
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(); |
Examples
...
language | js |
---|
...