C# Class Microsoft.DocAsCode.Build.RestApi.RestApiHelper

Mostrar archivo Open project: dotnet/docfx

Public Methods

Method Description
FormatDefinitionSinglePath ( string reference ) : string

Reverse to reference unescape described in http://tools.ietf.org/html/rfc6901#section-4

FormatReferenceFullPath ( string reference ) : string>.Tuple

When the reference starts with '#/', treat it as URI Fragment Identifier Representation and decode. When the reference starts with '/', treat it as JSON String Representation and keep it as. Refer to: https://tools.ietf.org/html/rfc6901#section-5

Method Details

FormatDefinitionSinglePath() public static method

Reverse to reference unescape described in http://tools.ietf.org/html/rfc6901#section-4
public static FormatDefinitionSinglePath ( string reference ) : string
reference string
return string

FormatReferenceFullPath() public static method

When the reference starts with '#/', treat it as URI Fragment Identifier Representation and decode. When the reference starts with '/', treat it as JSON String Representation and keep it as. Refer to: https://tools.ietf.org/html/rfc6901#section-5
public static FormatReferenceFullPath ( string reference ) : string>.Tuple
reference string
return string>.Tuple