How i will support xml data in API request dotnet ?
Go to the Program.cs file and edit this same as below code: Now if you hit the postman for get
Read moreGo to the Program.cs file and edit this same as below code: Now if you hit the postman for get
Read moreGo to the Program.cs file and set its same as below:
Read moreHere when user try to get data entering id. If user enter id zero(0) then it’s called BadRequest which return
Read moreHere i set id which type int and passed the int type id in GetVilla function.
Read moreFor solving this issue write outside of your class [Route(“api/VillaAPI”)]
Read more