(ii) 1, the first Webapi

Source: Internet
Author: User

Tools Required: Visual Studio 2017 (Download portal)

Note: Download to download online, I am on my desktop computer for an afternoon [smile]

1, because this machine has been downloaded, so in the follow-up I will be good "treat" my desktop computer.

2. To select. NET Core I remember ...

Ready to do this, the following is the official start!!!

The beginning of course is to create a new project, please keep in mind that I am using the Webapi, before also have to have the relevant MVC Foundation.

Select. NET Core---> select ASP.---> Fill in the Project name---> select the directory where the project is stored (don't play with me if you have a C drive)---> "Confirm"

We're using the Web API, and of course we're going to choose the Web API (Api:application programming Interface)

After so long ... (Your directory should be like this)

Click "Debug" to Start (do not debug),

It will pop up a webpage and then write ["Value1", "value2"] This is the default interface, it will display a string array

Here's a little explanation of this "54351", which is an unoccupied computer port that was automatically assigned after the project was created, so it can be developed locally because we're webapi, so we'll just show the data, The data here is sent from Valuescontroller (see Directory of Controllers)

At this point, the project creation is finished.

That's going to be the next step,webapi. Connect MySQL

(ii) 1, the first Webapi

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.