コード例 #1
0
        /// <summary>
        /// Defines a filter for DefaultResponseType that the api method should equal DELETE in order to be added to the api description.
        /// </summary>
        /// <param name="defaultResponseType">The original default response type.</param>
        /// <returns>The original default response type with an added filter.</returns>
        public static DefaultResponseType ToDelete(this DefaultResponseType defaultResponseType)
        {
            defaultResponseType.ToMethod("delete");

            return(defaultResponseType);
        }
コード例 #2
0
        /// <summary>
        /// Defines a filter for DefaultResponseType that the api method should equal PUT in order to be added to the api description.
        /// </summary>
        /// <param name="defaultResponseType">The original default response type.</param>
        /// <returns>The original default response type with an added filter.</returns>
        public static DefaultResponseType ToPut(this DefaultResponseType defaultResponseType)
        {
            defaultResponseType.ToMethod("put");

            return(defaultResponseType);
        }