You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have upgraded webapi hal package from 3.0.0 to 4.0.1. In the application when i initiate search call with keyword not available in list (for example: when i search for user name not available) in existing 3.0 package i get response without embedded list. But after upgrading to 4.0.1 when i initiate same call getting response with embedded which makes application crash. Is there any way to ignore embedded list if list is empty for latest version.
I have upgraded webapi hal package from 3.0.0 to 4.0.1. In the application when i initiate search call with keyword not available in list (for example: when i search for user name not available) in existing 3.0 package i get response without embedded list. But after upgrading to 4.0.1 when i initiate same call getting response with embedded which makes application crash. Is there any way to ignore embedded list if list is empty for latest version.
sample old response :
{
"TotalRecords": -1,
"TotalDisplayRecords": -1,
"_links": {
"self": {
"href": "/api/roles"
}
}
}
sample new response :
{
"TotalRecords": -1,
"TotalDisplayRecords": -1,
"_links": {
"self": {
"href": "/api/users"
}
},
"_embedded": {
"unknownRel-": []
}
}
The text was updated successfully, but these errors were encountered: