Home > OS >  No data returned in response but api is sending data in return statement
No data returned in response but api is sending data in return statement

Time:11-02

I am working on .net core web api and i have come across an issue where data is being sent as a model class but still in swagger no data is found in reponse i just see

{}

here is the screen shot of data returned by api image

here is the response in swagger

I gone through so much possibilities on stack and havent found any issue related to this

CodePudding user response:

The issue i had been through was that i had not made setter and getters for the object returned as it was returning multiple ienumerable objects. so setter and getters solved my problem

  • Related