메소드 | 설명 | |
---|---|---|
BuildCanonicalPath ( ApiResource resource ) : string |
Returns the UrlPath of the resource, ensuring it starts and ends with '/'
|
|
BuildCanonicalPath ( ApiResource resource, string id ) : string |
Returns a path in the form `/resource.UrlPath/id/`.
|
|
BuildRelationshipPath ( ApiResource resource, string id, ResourceRelationship relationship ) : string |
Returns a path in the form `/resource.UrlPath/id/relationships/relationship.UrlPath/`.
|
|
BuildRelationshipPath ( ApiResource resource, string id, ResourceRelationship relationship, string relatedResourceId ) : string |
Returns a path in the form `/resource.UrlPath/id/relationship.UrlPath/`.
|
|
DefaultUrlPathBuilder ( ) : System |
Initializes a new instance of the DefaultUrlPathBuilder class.
|
|
DefaultUrlPathBuilder ( string prefix ) : System |
Initializes a new instance of the DefaultUrlPathBuilder class.
|
메소드 | 설명 | |
---|---|---|
DefaultUrlPathBuilder ( string virtualPathRoot, string template ) : System |
public BuildCanonicalPath ( ApiResource resource ) : string | ||
resource | ApiResource | The resource this path refers to. |
리턴 | string |
public BuildCanonicalPath ( ApiResource resource, string id ) : string | ||
resource | ApiResource | The resource this path refers to. |
id | string | The unique id of the resource. |
리턴 | string |
public BuildRelationshipPath ( ApiResource resource, string id, ResourceRelationship relationship ) : string | ||
resource | ApiResource | The resource this path is related to. |
id | string | The unique id of the resource. |
relationship | ResourceRelationship | The relationship this path refers to. |
리턴 | string |
public BuildRelationshipPath ( ApiResource resource, string id, ResourceRelationship relationship, string relatedResourceId ) : string | ||
resource | ApiResource | The resource this path is related to. |
id | string | The unique id of the resource. |
relationship | ResourceRelationship | The relationship this path refers to. |
relatedResourceId | string | The id of the related resource. |
리턴 | string |
public DefaultUrlPathBuilder ( string prefix ) : System | ||
prefix | string | A prefix for all urls generated by this instance of the DefaultUrlPathBuilder class. |
리턴 | System |