Method | Description | |
---|---|---|
AsHttps ( this absoluteUrl ) : string | ||
ExpandGenericTypeName ( |
||
ExpandTypeName ( this type ) : string | ||
GetMetadataPropertyType ( this type ) : string | ||
GetOperationName ( this type ) : string | ||
GetQueryPropertyTypes ( this requestType ) : Type>.Dictionary |
||
HasRequestBody ( this httpMethod ) : bool | ||
ToDeleteUrl ( this requestDto ) : string | ||
ToGetUrl ( this requestDto ) : string | ||
ToOneWayUrl ( this requestDto, string format = "json" ) : string | ||
ToOneWayUrlOnly ( this requestDto, string format = "json" ) : string | ||
ToPostUrl ( this requestDto ) : string | ||
ToPutUrl ( this requestDto ) : string | ||
ToRelativeUri ( this requestDto, string httpMethod, string formatFallbackToPredefinedRoute = null ) : string | ||
ToReplyUrl ( this requestDto, string format = "json" ) : string | ||
ToReplyUrlOnly ( this requestDto, string format = "json" ) : string | ||
ToUrl ( this requestDto, string httpMethod, string formatFallbackToPredefinedRoute = null ) : string |
Generate a url from a Request DTO. Pretty URL generation require Routes to be defined using `[Route]` on the Request DTO
|
Method | Description | |
---|---|---|
FindMostSpecificRoute ( IEnumerable |
||
GetRoutesForType ( |
public static AsHttps ( this absoluteUrl ) : string | ||
absoluteUrl | this | |
return | string |
public static ExpandGenericTypeName ( |
||
type | ||
return | string |
public static ExpandTypeName ( this type ) : string | ||
type | this | |
return | string |
public static GetMetadataPropertyType ( this type ) : string | ||
type | this | |
return | string |
public static GetOperationName ( this type ) : string | ||
type | this | |
return | string |
public static GetQueryPropertyTypes ( this requestType ) : Type>.Dictionary |
||
requestType | this | |
return | Type>.Dictionary |
public static HasRequestBody ( this httpMethod ) : bool | ||
httpMethod | this | |
return | bool |
public static ToDeleteUrl ( this requestDto ) : string | ||
requestDto | this | |
return | string |
public static ToGetUrl ( this requestDto ) : string | ||
requestDto | this | |
return | string |
public static ToOneWayUrl ( this requestDto, string format = "json" ) : string | ||
requestDto | this | |
format | string | |
return | string |
public static ToOneWayUrlOnly ( this requestDto, string format = "json" ) : string | ||
requestDto | this | |
format | string | |
return | string |
public static ToPostUrl ( this requestDto ) : string | ||
requestDto | this | |
return | string |
public static ToPutUrl ( this requestDto ) : string | ||
requestDto | this | |
return | string |
public static ToRelativeUri ( this requestDto, string httpMethod, string formatFallbackToPredefinedRoute = null ) : string | ||
requestDto | this | |
httpMethod | string | |
formatFallbackToPredefinedRoute | string | |
return | string |
public static ToReplyUrl ( this requestDto, string format = "json" ) : string | ||
requestDto | this | |
format | string | |
return | string |
public static ToReplyUrlOnly ( this requestDto, string format = "json" ) : string | ||
requestDto | this | |
format | string | |
return | string |
public static ToUrl ( this requestDto, string httpMethod, string formatFallbackToPredefinedRoute = null ) : string | ||
requestDto | this | |
httpMethod | string | |
formatFallbackToPredefinedRoute | string | |
return | string |