Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @agustinkonfio

    I’m not sure I fully understand your situation. Would you mind sharing more details about your scenario and what are you trying to achieve? You can also share a video demonstration for a better understanding.

    Thanks.

    Thread Starter Agustin

    (@agustinkonfio)

    hi MM sorry the screenshots are not clear…

    Basically when i’m using your plugin , I have created a documentation page to document a REST API Delete method, but I have specified DELETE on the shortcode, but it renders as PUT on the frontend.

    [description method="DELETE"]
    <div class="description">
    <pre class="EnlighterJSRAW" data-enlighter-language="null">https://sandbox-api.com/v1/Customer/:id</pre>
    
    Customer card delete
    </div>
    [header]headers[/header]
    
    [header_row txt-bold="Authorization"]Bearer Token[/header_row]
    
    [type]
    
    [header]PATH VARIABLES[/header]
    
    [header_row txt-bold="id"]ID[/header_row]
    
    [/description]

    This code basically is rendering NOT as a “delete” BUT it appears on the frontend of the website as “Put”.

    Is this expected?

    • This reply was modified 2 years, 10 months ago by Agustin.
    • This reply was modified 2 years, 10 months ago by Agustin.
    • This reply was modified 2 years, 10 months ago by Agustin.

    I tried the Delete method for a doc with my localhost using Postman Application, and the API response seems to be working nicely. You can have a look at this quick video. Am I missing anything? Please make sure you have everything well configured.
    Thanks!

    Plugin Author Tareq Hasan

    (@tareq1988)

    Hello @agustinkonfio, the shortcodes you’re using are not provided by weDocs. These description, header, type, header_row, all these shortcodes maybe provided by any other plugin or your theme. weDocs has nothing to do with this, hope you understand.

    Thread Starter Agustin

    (@agustinkonfio)

    thanks my friend and sorry , my bad.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘DELETE method is not rendering as DELETE but as PUT’ is closed to new replies.