IRestEndpointController
is defined in the Telligent.Evolution.Extensibility.Rest.Version2
namespace of Telligent.Evolution.Platform.dll
Definition
interface IRestEndpointController { void Add(int version, string relativeUrl, HttpMethod method, Func<IRestRequest,IRestResponse> handler); void Add(int version, string relativeUrl, HttpMethod method, Func<IRestRequest,IRestResponse> handler, RestEndpointDocumentation documentation); void Add(int version, string relativeUrl, Object parameterDefaults, Object parameterConstraints, HttpMethod method, Func<IRestRequest,IRestResponse> handler); void Add(int version, string relativeUrl, Object parameterDefaults, Object parameterConstraints, HttpMethod method, Func<IRestRequest,IRestResponse> handler, RestEndpointDocumentation documentation); void Add(int version, string relativeUrl, Object parameterDefaults, Object parameterConstraints, HttpMethod method, Action<IRestRequest,HttpResponse> handler); void Add(int version, string relativeUrl, Object parameterDefaults, Object parameterConstraints, HttpMethod method, Action<IRestRequest,HttpResponse> handler, RestEndpointDocumentation documentation); }
Methods
void Add(int version, string relativeUrl, HttpMethod method, Func<IRestRequest,IRestResponse> handler);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
version | int | Version | Required | ||
relativeUrl | string | Relative Url | Required | ||
method | HttpMethod | Method | Required | ||
handler | Func<IRestRequest,IRestResponse> | Handler | Required |
void Add(int version, string relativeUrl, HttpMethod method, Func<IRestRequest,IRestResponse> handler, RestEndpointDocumentation documentation);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
version | int | Version | Required | ||
relativeUrl | string | Relative Url | Required | ||
method | HttpMethod | Method | Required | ||
handler | Func<IRestRequest,IRestResponse> | Handler | Required | ||
documentation | RestEndpointDocumentation | Documentation | Required |
void Add(int version, string relativeUrl, Object parameterDefaults, Object parameterConstraints, HttpMethod method, Func<IRestRequest,IRestResponse> handler);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
version | int | Version | Required | ||
relativeUrl | string | Relative Url | Required | ||
parameterDefaults | Object | Parameter Defaults | Required | ||
parameterConstraints | Object | Parameter Constraints | Required | ||
method | HttpMethod | Method | Required | ||
handler | Func<IRestRequest,IRestResponse> | Handler | Required |
void Add(int version, string relativeUrl, Object parameterDefaults, Object parameterConstraints, HttpMethod method, Func<IRestRequest,IRestResponse> handler, RestEndpointDocumentation documentation);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
version | int | Version | Required | ||
relativeUrl | string | Relative Url | Required | ||
parameterDefaults | Object | Parameter Defaults | Required | ||
parameterConstraints | Object | Parameter Constraints | Required | ||
method | HttpMethod | Method | Required | ||
handler | Func<IRestRequest,IRestResponse> | Handler | Required | ||
documentation | RestEndpointDocumentation | Documentation | Required |
void Add(int version, string relativeUrl, Object parameterDefaults, Object parameterConstraints, HttpMethod method, Action<IRestRequest,HttpResponse> handler);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
version | int | Version | Required | ||
relativeUrl | string | Relative Url | Required | ||
parameterDefaults | Object | Parameter Defaults | Required | ||
parameterConstraints | Object | Parameter Constraints | Required | ||
method | HttpMethod | Method | Required | ||
handler | Action<IRestRequest,HttpResponse> | Handler | Required |
void Add(int version, string relativeUrl, Object parameterDefaults, Object parameterConstraints, HttpMethod method, Action<IRestRequest,HttpResponse> handler, RestEndpointDocumentation documentation);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
version | int | Version | Required | ||
relativeUrl | string | Relative Url | Required | ||
parameterDefaults | Object | Parameter Defaults | Required | ||
parameterConstraints | Object | Parameter Constraints | Required | ||
method | HttpMethod | Method | Required | ||
handler | Action<IRestRequest,HttpResponse> | Handler | Required | ||
documentation | RestEndpointDocumentation | Documentation | Required |