public static ApiVersioningOptions VersionByQuery(this ApiVersioningOptions options, string parameterName) { options.VersioningScheme = new QueryVersioningScheme(parameterName); return(options); }
public static ApiVersioningOptions VersionByHeader(this ApiVersioningOptions options, string headerName) { options.VersioningScheme = new HeaderVersioningScheme(headerName); return(options); }
public static ApiVersioningOptions VersionByQuery(this ApiVersioningOptions options) { return(options.VersionByQuery("api-version")); }
public static ApiVersioningOptions VersionByHeader(this ApiVersioningOptions options) { return(options.VersionByHeader("X-Api-Version")); }