This is a RESTful web service built with .NET Core 2.1 for some of my Angular project.
The APIs are used in the following projects:
- See PapaJohnsClone repo
- See HomeCuisine repo
This web service is deployed and run on SmarterAsp.Net hosting (moved from Microsoft Azure Cloud)
Example (link):
[
{
"id": 1,
"name": "Create Your Own",
"description": "25% off Regular Menu Price Online Orders",
"itemCategoryId": 4,
"itemCategoryName": "Specials",
"price": 10.99
},
{
"id": 3,
"name": "Cinnamon Pull Aparts",
"description": "Bite-sized sweet roll dough covered in cinnamon and sugar, topped with cinnamon crumbles then baked and drizzled with cream cheese icing",
"itemCategoryId": 1,
"itemCategoryName": "Specials",
"price": 6.29
},
{
"id": 5,
"name": "Double Chocolate Chip Brownie",
"description": "Filled with chocolate chips, cut into 9 squares and served warm",
"itemCategoryId": 1,
"itemCategoryName": "Specials",
"price": 3.19
}
]
- RESTful API design
- Async/Await approach
- CORS configuration
- .NET Core 2.1.0
- Entity Framework Core 2.1.0
- C#
- Visual Studio Code
Install:
- .NET Core CDK
- Visual Studio Code IDE
- '.NET Core Extension Pack' extension
In order to start the project:
# download the source code
$ git clone https://github.com/Tiamatt/PapaJohnsCloneApi
# open the project with Visual Studio Code
# restore packages
$ dotnet restore
# run application
$ dotnet run
# open in browser
$ https://localhost:5001/api/values