ASP. NET Core Web API Cassandra CRUD Operations

Source: Internet
Author: User
Tags cassandra

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.