CRUD Operation on WordPress Posts From C# over REST API

Main Article Content

Sudip Chakraborty
Aithal P. S.

Abstract

Purpose: WordPress is a sound content management system on the web. We can build a website with little effort. Around 40% of internet websites are powered by WordPress. Using the WordPress website, our researcher can store research data inside the website database without spending money on the cloud. We demonstrate how to run CRUD operations on a WordPress-powered website database using WordPress Posts. We observe the essential CRUD operation so that our researcher can integrate it easily into their project with complex procedures. We use REST API for communication between the WordPress and the client application. We created a GUI in Visual Studio using C# language for easy operation. An HTTP client is used for communication. The complete project code is available to download and continue research work.


Design/Methodology/Approach: First, we install a “local” application in our working system. Then, we create a brand-new WordPress website. We activated the latest theme, which is now Twenty twenty-four. We make a custom route and add a posts operation handling module inside the theme folder. This is the server-side action. On the other hand, inside the Visual Studio 2022 community edition, using C# language, we created a GUI-based client application to interact with users. We added an HTTP client module to communicate with the server.


Findings/Result: We experimented with practical, real-world examples. The overall performance is excellent and helpful in real-world scenarios without any issues. Network latency is sometimes present, creating problems in real-time data processing. The researcher creating a custom route in their online website can experiment. It will not have any adverse effect on keeping the website live.


Originality/Value: WordPress uses the database to store post-type data and some WordPress-related configurations. Out of the traditional way, we can also reserve our research data as post-type content according to our project requirements. Keeping our data as the post-type of content from the C# application is the least available documentation on the web. We demonstrate here through Practical examples. Some valuable reference information can be found here.


Paper Type: Experimental-based Research.

Article Details

How to Cite
Sudip Chakraborty, & Aithal P. S. (2023). CRUD Operation on WordPress Posts From C# over REST API. International Journal of Management, Technology and Social Sciences (IJMTS), 8(4), 223–231. https://doi.org/10.47992/IJMTS.2581.6012.0320
Section
Articles

Most read articles by the same author(s)

<< < 1 2 3 4 5 6 > >>