Hi,
I'm trying to build my app with Web API, but I just don't understand how it works, I read the Microsoft docs but couldn't figure it out.
and I can't run my project.
"ValuesController.cs" :
[Route("api/[controller]")]
[ApiController]
public class ValuesController : ControllerBase
{
[HttpPost]
[Route("shop")] // What is the Rout for ?
public string AddProduct(string productName, string categoryName, double price,
int stock, string productDescription,
string productOverview, string productImage)
{
return BLL.AddProduct(productName, categoryName, price,
stock, productDescription, productOverview, productImage);
}
I don't understand this property in "launchSettings.json" -
"launchUrl": "somestringforurl",
Is it only the name of the URL nothing else ?nothing opens my "ValuesController.cs" file.
Thanks in advance




