Building and Securing Web APIs with ASP.NET Core 3.0

Hi @doingnz,
Thank you for reading the tutorial. I’ll try to give you my feedback to help you understand the possible cause of the issues.
If all is working fine with Postman, I’m quite sure that your Web API is OK. So, the issue should be with the client (cUrl) or with the environment.

The 415 status code says that the API expects a specific data type (application/json in our case) but you are sending a different one. Be sure to include the --header 'content-type: application/json' flag in the cUrl command.
Check this and let me know if it helped.

In addition, why did you need to change the default port? Which error message did you receive? Was the 5001 port in use? Do you have a firewall that may block cUrl’s activity?
Also, the operating system you are using may help me to find a possible cause of your problems.
If you can give me more information, I will try to figure out what’s going on.

Regards