WEB COMMUNICATION: IMPLEMENTING A RESTFUL WEB API IN C# .NET 8 USING CLEAN ARCHITECTURE

Peter Kaczmarski
{"title":"WEB COMMUNICATION: IMPLEMENTING A RESTFUL WEB API IN C# .NET 8 USING CLEAN ARCHITECTURE","authors":"Peter Kaczmarski","doi":"10.57028/c57-003-z1057","DOIUrl":null,"url":null,"abstract":"Web communication technology forms today a crucial component of web- and cloud-based information processing. One of the key approaches in this area is REST (Fielding, 2000), which today coexists with other technologies, in particular GraphQL and gRPC. In this paper we focus on implementing REST-based web communication components using the latest version of C#/.NET SDK (.NET 8 LTS, released on 14.11.2023). In the first part, we discuss the concept of a RESTful network architecture and summarize the features which allow to define the communication style as RESTful. Next sections focus on C# implementation patterns specific for .NET such as minimal Web API and API controllers. Finally, a standardized approach for web API implementation in .NET based on Clean Architecture is discussed and tested. One of the main conclusions from this work is that the latest version of C#/.NET provides an attractive toolset for development of RESTful communication architectures, as it allows for efficient and well-structured implementation.","PeriodicalId":254504,"journal":{"name":"Communication & Cognition","volume":"38 3 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Communication & Cognition","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.57028/c57-003-z1057","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Web communication technology forms today a crucial component of web- and cloud-based information processing. One of the key approaches in this area is REST (Fielding, 2000), which today coexists with other technologies, in particular GraphQL and gRPC. In this paper we focus on implementing REST-based web communication components using the latest version of C#/.NET SDK (.NET 8 LTS, released on 14.11.2023). In the first part, we discuss the concept of a RESTful network architecture and summarize the features which allow to define the communication style as RESTful. Next sections focus on C# implementation patterns specific for .NET such as minimal Web API and API controllers. Finally, a standardized approach for web API implementation in .NET based on Clean Architecture is discussed and tested. One of the main conclusions from this work is that the latest version of C#/.NET provides an attractive toolset for development of RESTful communication architectures, as it allows for efficient and well-structured implementation.
网络通信:使用简洁的架构在 C# .net 8 中实现富余网络应用程序接口
网络通信技术是当今网络和云信息处理的重要组成部分。该领域的关键方法之一是 REST(Fielding,2000 年),如今它与其他技术,特别是 GraphQL 和 gRPC 并存。在本文中,我们将重点讨论如何使用最新版本的 C#/.NET SDK(.NET 8 LTS,14.11.2023 发布)实现基于 REST 的网络通信组件。在第一部分,我们讨论了 RESTful 网络架构的概念,并总结了可将通信风格定义为 RESTful 的特征。接下来,我们将重点讨论.NET特有的 C# 实现模式,如最小 Web API 和 API 控制器。最后,讨论并测试了基于 "清洁架构 "的.NET 网络 API 实现标准化方法。这项工作的主要结论之一是,最新版本的 C#/.NET 为 RESTful 通信架构的开发提供了极具吸引力的工具集,因为它允许高效、结构良好的实施。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术文献互助群
群 号:481959085
Book学术官方微信