{"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.