CRUD Operation on WordPress Database Using C# And REST API

Sudipto Chakraborty, P. Aithal
{"title":"CRUD Operation on WordPress Database Using C# And REST API","authors":"Sudipto Chakraborty, P. Aithal","doi":"10.47992/ijaeml.2581.7000.0197","DOIUrl":null,"url":null,"abstract":"Purpose: IoT is famous for research with sensor data. The standard way is to keep sensor data inside IoT platforms like AWS, Google, and Microsoft Azure cloud. We must pay to keep or exchange the data among different systems. Here, we provide a different approach to keep our research data inside the cloud. We created a communication channel using the C# application and WordPress website database over REST API, which is now widespread. Our data format is JSON, which is the industry standard. Upload data to the website database using an HTTP client from the C# application. The uploaded data can be accessible from anywhere among the various systems. Our website runs round the clock, so our data is always available. This procedure might be cheaper than the available solution due to the use of our existing website database. Through the practical approach, we demonstrate how to do that. This procedure can be helpful for the researcher trying to keep their research data at a cheap cost inside the cloud. The complete project code is available to download, and the value addition to this work. Design/Methodology/Approach: We first install “Local” software inside our system. On that, we installed a WordPress website. Then, we create a custom route for our experiment to differentiate from existing website content inside the server using PHP. Then, we added our module, which provides CURD operation. This module receives JSON-structured content, which is converted by the WordPress engine. The module parses the command and processes it accordingly. The response is returned to the client application. We created a C# application with a couple of GUI elements to interact with the user. We added a couple of modules using the Nuget package manager for REST API. After the application opens, the first action is to connect with the database. Once the database is available, CRUD operation can be executed. Findings/Result: We tested the entire project using practical deployment. The performance is pretty good. A small quantity of network latency is present in our observation. The content updation time depends on website bandwidth, network traffic, the system’s specification, and the number of running applications. Originality/Value: Over the net, there is some practical documentation on C# REST API on the WordPress Website. Sometimes, researchers working on WordPress websites want to use database operation over REST API. Here, we demonstrate this through practical examples. So, it is a slightly different approach for quickly understanding the communication flow. Paper Type: Experimental-based Research.","PeriodicalId":184829,"journal":{"name":"International Journal of Applied Engineering and Management Letters","volume":"8 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2023-11-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Journal of Applied Engineering and Management Letters","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.47992/ijaeml.2581.7000.0197","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Purpose: IoT is famous for research with sensor data. The standard way is to keep sensor data inside IoT platforms like AWS, Google, and Microsoft Azure cloud. We must pay to keep or exchange the data among different systems. Here, we provide a different approach to keep our research data inside the cloud. We created a communication channel using the C# application and WordPress website database over REST API, which is now widespread. Our data format is JSON, which is the industry standard. Upload data to the website database using an HTTP client from the C# application. The uploaded data can be accessible from anywhere among the various systems. Our website runs round the clock, so our data is always available. This procedure might be cheaper than the available solution due to the use of our existing website database. Through the practical approach, we demonstrate how to do that. This procedure can be helpful for the researcher trying to keep their research data at a cheap cost inside the cloud. The complete project code is available to download, and the value addition to this work. Design/Methodology/Approach: We first install “Local” software inside our system. On that, we installed a WordPress website. Then, we create a custom route for our experiment to differentiate from existing website content inside the server using PHP. Then, we added our module, which provides CURD operation. This module receives JSON-structured content, which is converted by the WordPress engine. The module parses the command and processes it accordingly. The response is returned to the client application. We created a C# application with a couple of GUI elements to interact with the user. We added a couple of modules using the Nuget package manager for REST API. After the application opens, the first action is to connect with the database. Once the database is available, CRUD operation can be executed. Findings/Result: We tested the entire project using practical deployment. The performance is pretty good. A small quantity of network latency is present in our observation. The content updation time depends on website bandwidth, network traffic, the system’s specification, and the number of running applications. Originality/Value: Over the net, there is some practical documentation on C# REST API on the WordPress Website. Sometimes, researchers working on WordPress websites want to use database operation over REST API. Here, we demonstrate this through practical examples. So, it is a slightly different approach for quickly understanding the communication flow. Paper Type: Experimental-based Research.
使用 C# 和 REST API 对 WordPress 数据库进行 CRUD 操作
目的:物联网因研究传感器数据而闻名。标准的方法是将传感器数据保存在 AWS、Google 和 Microsoft Azure 云等物联网平台中。我们必须支付在不同系统间保存或交换数据的费用。在这里,我们提供了一种不同的方法,将我们的研究数据保存在云中。我们使用 C# 应用程序和 WordPress 网站数据库通过 REST API 创建了一个通信渠道,REST API 现已非常普及。我们的数据格式是 JSON,这是行业标准。使用 C# 应用程序的 HTTP 客户端将数据上传到网站数据库。上传的数据可以从各种系统的任何地方访问。我们的网站全天候运行,因此数据随时可用。由于使用了我们现有的网站数据库,这个程序可能比现有的解决方案更便宜。通过实践方法,我们展示了如何做到这一点。这个程序可以帮助研究人员以低廉的成本在云中保存他们的研究数据。完整的项目代码可供下载,这也是本作品的附加价值所在。设计/方法/途径:我们首先在系统中安装 "本地 "软件。在此基础上,我们安装了 WordPress 网站。然后,我们为实验创建了一个自定义路由,以便使用 PHP 与服务器内现有的网站内容区分开来。然后,我们添加了提供 CURD 操作的模块。该模块接收由 WordPress 引擎转换的 JSON 结构内容。模块解析命令并进行相应处理。响应将返回给客户端应用程序。我们创建了一个 C# 应用程序,其中包含几个 GUI 元素,用于与用户交互。我们使用 Nuget 软件包管理器为 REST API 添加了几个模块。应用程序打开后,第一个操作是连接数据库。一旦数据库可用,就可以执行 CRUD 操作。结果/成果:我们使用实际部署测试了整个项目。性能相当不错。我们观察到了少量的网络延迟。内容更新时间取决于网站带宽、网络流量、系统规格和运行应用程序的数量。 原创性/价值:在网络上,WordPress 网站上有一些关于 C# REST API 的实用文档。有时,WordPress 网站的研究人员希望通过 REST API 使用数据库操作。在这里,我们通过实际例子来演示这一点。因此,这是一种略有不同的快速了解通信流的方法。 论文类型:基于实验的研究。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信