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
Jignesh KumarPosted Mar 4, 2024, 3:36 AM
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 RaveendranPosted Mar 3, 2024, 7:16 PM
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
Rajanikant HawaldarPosted Mar 2, 2024, 1:00 PM
check
https://www.c-sharpcorner.com/article/create-webapi-with-dotnet-core/