c# - Not generating Help documentation for some methods in Web API -
i have created web api project, , has controller includes multiple post , get methods different parameters. when it's generated automatically page methods. generates methods only. wonder why not generating methods.
public class bookingscontrollerv1 : bookingscontrollerbase { /// <summary> /// post /booking/bookingrequest /// </summary> /// <param name="bookingrequest"></param> /// <returns> id of created booking</returns> public httpresponsemessage post(bookingrequest bookingrequest) { ** implementation here ** } /// <summary> /// /bookings/id /// </summary> /// <param name="id">id of created booking</param> /// <returns></returns> public booking get(int id) { ** implementation here ** } }
other abstract class below
public abstract class bookingscontrollerbase : publiccontrollerbase { // provide default error handler unsupported patch route // patch /bookings/{bookingid} /// <summary> /// /bookings/id /// </summary> /// <param name="id">id of created booking</param> /// <returns></returns> public httpresponsemessage patch( bookingrequest bookingrequest, int id) { ** implementation here ** } }
parent abstract class below
public abstract class publiccontrollerbase : apicontroller { /// <summary> /// post /bookings/request/id /// </summary> /// <param name="request"></param> /// <param name="id"></param> /// <returns></returns> [apiexplorersettings(ignoreapi = true)] public httpresponsemessage post( object request, int id) { ** implementation here ** } /// <summary> /// post /bookings/request/id/context/contextid /// </summary> /// <param name="request">request</param> /// <param name="id">id</param> /// <param name="context">context</param> /// <param name="contextid">contextid</param> /// <returns></returns> public httpresponsemessage post( object request, int id, enumresource context, int contextid) { ** implementation here ** } }
i unable find issue not generating method documentation in page. documentation related "post /booking/bookingrequest" not generating here. others ok.
thanks in advance
Comments
Post a Comment