locked
Help page still generating deleted action already. How to update help page? RRS feed

Answers

  • User-1175692115 posted

    Wow. I found it. It's very simple.

    I have function like below in my apiController.

    public int GetSessionID(int myMemNo, int TargetMemNo)

    {

        ....

    }

    That caused it.

    help page produce like api/Chat/?myMemNo={myMemNo}&TargetMemNo={TargetMemNo}

    What I did was paste [NonAction] on top

    [NonAction]
    public int GetSessionID(int myMemNo, int TargetMemNo)
    {

    }

    hahaha.

    Thank you Ashok10. have a nice weekend.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, August 11, 2017 12:31 AM

All replies

  • User1009191752 posted

    Hi,

    All Web API  help text information stored into  XML file. When you have re-build solution it updating XML file.

    Make sure check the XML file has updated.

    If you cannot find  XML file ,Please have create path for this XML file like below.

    Next open Areas\HelpPage\HelpPageConfig and locate the following line:

    config.SetDocumentationProvider(new XmlDocumentationProvider(
        HttpContext.Current.Server.MapPath("~/App_Data/XmlDocument.xml")));
    Thursday, August 10, 2017 12:20 PM
  • User-1175692115 posted

    I've tested it now.

    I deleted all contents of that XML. and rebuild, as expectedly It updated its contents of XML file.

    there's no regarding to the deleted actions.

    but on the help page, It still has already deleted actions yet.

    What's the problem? I suppose there are another issues saving actions in other place like data repository or database.

    FYI, I also tested like I even deleted that Controller file like ChatController.cs. and recreate that file and paste all code. It still not worked.

    is there any thing I can test more?

    Thursday, August 10, 2017 11:49 PM
  • User-1175692115 posted

    Wow. I found it. It's very simple.

    I have function like below in my apiController.

    public int GetSessionID(int myMemNo, int TargetMemNo)

    {

        ....

    }

    That caused it.

    help page produce like api/Chat/?myMemNo={myMemNo}&TargetMemNo={TargetMemNo}

    What I did was paste [NonAction] on top

    [NonAction]
    public int GetSessionID(int myMemNo, int TargetMemNo)
    {

    }

    hahaha.

    Thank you Ashok10. have a nice weekend.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, August 11, 2017 12:31 AM
  • User1404573039 posted

    Hi Gichan,

    I am glad you have found the solution, and I would suggest you mark your reply as answer which is the way to close a thread here.

    Have a nice weekend.

    Regards,

    Tony

    Friday, August 11, 2017 7:08 AM
  • User-1175692115 posted

    thank you.

    Sunday, August 13, 2017 11:27 PM