DEV Community

kambala yashwanth
kambala yashwanth

Posted on

[Solved] DEV API Can't able to update an article !

I am using postman to create new Articles , but failing to update the article

Creating an article

Alt Text

Updating an article

Alt Text

Please give me any working examples of creating and updating an article

getting when i try to update article

    <!DOCTYPE html>
<html>

<head>
    <title>The page you were looking for doesn't exist (404)</title>
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <style>
        .not-found-page {
            height: 100vh;
            min-height: 500px;
        }

        .tv__outer {
            display: table;
            position: absolute;
            height: 98%;
            width: 98%;
        }

        .tv__middle {
            display: table-cell;
            vertical-align: middle;
            position: relative;
        }

        .tv__inner {
            margin-left: auto;
            margin-right: auto;
            display: table;
        }

        .tv__inner--special {
            position: absolute;
            left: 0;
            right: 0;
            margin: auto;
            -webkit-animation-name: fade;
            -webkit-animation-iteration-count: infinite;
            -webkit-animation-duration: 2s;
            animation-name: fade;
            animation-iteration-count: infinite;
            animation-duration: 2s;
        }

        .tv__inner--text {
            margin-left: auto;
            margin-right: auto;
            display: table;
            font-size: 22px;
            font-weight: 500;
        }

        .tv__inner--special,
        .tv__inner {
            max-width: 85%;
            width: 300px;
            border: 25px solid rgb(54, 55, 124);
            border-radius: 36px;
        }

        .tv__inner--text {
            text-align: center;
            max-width: 90%;
        }

        @-webkit-keyframes fade {
            0% {
                opacity: 1;
            }

            10% {
                opacity: 1;
            }

            20% {
                opacity: 0;
            }

            25% {
                opacity: 0;
            }

            28% {
                opacity: 0;
            }

            30% {
                opacity: 0;
            }

            33% {
                opacity: 1;
            }

            45% {
                opacity: 1;
            }

            53% {
                opacity: 0;
            }

            100% {
                opacity: 0;
            }
        }

        @keyframes fade {
            0% {
                opacity: 1;
            }

            10% {
                opacity: 1;
            }

            20% {
                opacity: 0;
            }

            25% {
                opacity: 0;
            }

            28% {
                opacity: 0;
            }

            30% {
                opacity: 0;
            }

            33% {
                opacity: 1;
            }

            45% {
                opacity: 1;
            }

            53% {
                opacity: 0;
            }

            100% {
                opacity: 0;
            }
        }
    </style>
</head>

<body>
    <div class="not-found-page base-background-color">
        <div class="tv__outer">
            <div class="tv__middle">
                <img class="tv__inner--special" src="https://i.imgur.com/Vyyjycv.gif" alt="404 not found image as TV static">
                <img class="tv__inner" src="https://i.imgur.com/3v0LCiP.jpg" alt="404 not found DEV logo">
                <br>
                <p class="tv__inner--text">This page does not exist <br><br> <a href="https://dev.to/">Return to Home
                        Page</a></p>
            </div>
        </div>
    </div>
</body>

</html>

Top comments (1)

Collapse
 
yashwanth2804 profile image
kambala yashwanth

Solved the ISSUE !

My bad have to use PUT Method for update article not the POST Method.