i HAVE BEGINNER FROM API. SO PLEASE HELP ME. MY API STRUCTURE ARE BELOW
METHOD : POST
BODY: (JSON)
{
"customerPhone":"7799299756"
}
AFTER RESPONSE HERE..
Response :
Success:
{
"status": 200,
"message": "CustomerPoints",
"customer": {
"name": "Dileep Kumar",
"phone": "7799299756",
"email": null,
"points": 77
}
}
Errors:
{
“status”: {code},
“message”: {error_message}
}
Thabk in advance

Rajanikant HawaldarRank #110 · 20.2K reputationPosted Mar 2, 2024, 8:00 AM EST
check
https://www.c-sharpcorner.com/article/create-webapi-with-dotnet-core/
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 3, 2024, 10:36 PM EST
Hello,
Please refer this links which will help you out,
https://www.c-sharpcorner.com/article/create-simple-web-api-in-asp-net-mvc/
https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-8.0&tabs=visual-studio
https://www.toptal.com/asp-dot-net/asp-net-web-api-tutorial
Prasad RaveendranRank #320 · 7.8K reputationPosted Mar 3, 2024, 2:16 PM EST
please take a look at the below links
https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-8.0&tabs=visual-studio
https://learn.microsoft.com/en-us/aspnet/core/web-api/?view=aspnetcore-8.0