In this article, we will create a simple Web API to implement CRUD operations on a "TODO" list, use Apache Cassandra to store data, do not create a UI here, and Web API testing will be done using Postman.
ASP. NET core is a major refactoring of ASP. ASP., an all-new open source and cross-platform framework for building modern cloud-based applications such as WEB applications, Internet of Things (IoT) applications, and mobile back-end applications.
ASP. NET Core already has built-in support for building Web APIs with an MVC architecture. Unifying two frameworks makes it easy to build applications, including user interface (HTML) and APIs, which now share the same code base and pipeline.
Apache Cassandra is a highly scalable, high-performance distributed database designed to handle large volumes of data on a large number of commercial servers, providing high availability with no single point of failure. It is a NoSQL database.
Software Environment:
- Debian 8
- Visual Studio Code
- Nodejs
- Apache Cassandra
- . NET Core SDK
To create an ASP. NET Web API Project
Here we use Yeoman to build the base template for the Web API app, first using NPM to install the Yeoman:
install -g yo
Then install the ASP. NET Web App Builder:
install -g generator-aspnet
When the installation is complete, go to the directory where you want to store the Web API app files, and then run:
yo aspnet
Select Web API Application Press ENTER to confirm, then enter the app name Cassandracrud Press ENTER to determine that Yeoman will automatically generate a basic ASP. NET Core Web API app.
Read the full text ...
ASP. NET Core Web API Cassandra CRUD Operations