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
{{ message }}
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
Ex -
if the api response is
[
{"id":"someId", "name":"someName"},
{"id":"someId1", "name":"someName2"}
]
the mock-server returns empty object i.e {}
but if i make the api response
{
"temp":[
{"id":"someId", "name":"someName"},
{"id":"someId1", "name":"someName2"}
]
}
then it is working fine.
I extremely need to return list or array at the root of api response.
The text was updated successfully, but these errors were encountered:
rokumar1077
changed the title
mock-server returns empty whenever it found Arrays/List<> at the root in the api response.
mock-server returns empty object whenever it found Arrays/List<> at the root in the api response.
Dec 15, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Ex -
if the api response is
[
{"id":"someId", "name":"someName"},
{"id":"someId1", "name":"someName2"}
]
the mock-server returns empty object i.e {}
but if i make the api response
{
"temp":[
{"id":"someId", "name":"someName"},
{"id":"someId1", "name":"someName2"}
]
}
then it is working fine.
I extremely need to return list or array at the root of api response.
The text was updated successfully, but these errors were encountered: