My Blog

Menu

REST API Calls

Posted: November 24, 2021. | By: Admin

1)Install plugin WordPress REST API (Version 2) and activate
    API Calls

    Posts
        1)Get site posts
            http://localhost/websiteName/wp-json/wp/v2/posts
        2)Get all posts with the search term “xxxx”?
            http://localhost/websiteName/wp-json/wp/v2/posts?search=xxxx
        3)Delete a Page
            http://localhost/websiteName/wp-json/wp/v2/posts/9
    Pages
        1)Get site pages
            http://localhost/websiteName/wp-json/wp/v2/pages
        2)Retrieve a Page
            http://localhost/websiteName/wp-json/wp/v2/pages/9
        3)Delete a Page
            http://localhost/websiteName/wp-json/wp/v2/pages/9
    Media
        1)Get all media
            http://localhost/websiteName/wp-json/wp/v2/media
        2)Retrieve a media
            http://localhost/websiteName/wp-json/wp/v2/media/1
        3)Delete a media
            http://localhost/websiteName/wp-json/wp/v2/media/1
    User
        1)Get all users
            http://localhost/websiteName/wp-json/wp/v2/users
        3)Get user
            http://localhost/websiteName/wp-json/wp/v2/users/1
        3)Delete a user
            http://localhost/websiteName/wp-json/wp/v2/users/1
    Comments
        1)Get site Comments
            http://localhost/websiteName/wp-json/wp/v2/comments
        2)Get comment
            http://localhost/websiteName/wp-json/wp/v2/comments/1
        3)Delete a comment
            http://localhost/websiteName/wp-json/wp/v2/comments/1
    Categorys
        1)Get site Categorys
            http://localhost/websiteName/wp-json/wp/v2/categories
        2)Get category
            http://localhost/websiteName/wp-json/wp/v2/categories/1
        3)Delete a category
            http://localhost/websiteName/wp-json/wp/v2/categories/1
 

About

Aapthi Technologies,Hyderabad offers a complete range of web solutions including web designing, developing, web hosting, Internet marketing and many more. With our electrifying presence, we have swirled the scenario of web solutions. We consistently invigorate our skill-set and tech-expertise and work with a high-level of integrity. Our keen-eye on emerging trends of online business as well as technical spheres has empowered us to render the most innovative solutions. Persistent development is the key drive of Aapthi Technologies, be it in terms of infrastructure, skill-set or technology. Team Aapthi Technologies, is fully committed to render back hundred percent value for the money paid by client.

Social Links

Our Bunker

Plot No -596, Near Reliance Fresh,
Vivekananda nagar colony, Kukatpally,
Hyderabad - 500072, India.