ASP.NET Core 3 and React by Carl Rippon

ASP.NET Core 3 and React by Carl Rippon

Author:Carl Rippon
Language: eng
Format: epub
Tags: COM060160 - COMPUTERS / Web / Web Programming, COM051310 - COMPUTERS / Programming Languages / C#, COM005000 - COMPUTERS / Enterprise Applications / General
Publisher: Packt Publishing
Published: 2019-12-27T06:59:20+00:00


All the code snippets in this chapter can be found online at https://github.com/carlrip/ASP.NET-Core-and-React-Book. In order to restore code from a chapter, the source code repository can be downloaded and the relevant folder opened in the relevant editor. If the code is frontend code then npm install can be entered in the Terminal to restore the dependencies.

Check out the following video to see the code in action:

http://bit.ly/2PUriJg

Creating an API controller

In this section, we are going to create an API controller to handle requests to an api/questions endpoint. The controller will call into the data repository we created in the previous chapter. We'll also create an instance of the data repository in the API controller using dependency injection.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.