zerocode icon indicating copy to clipboard operation
zerocode copied to clipboard

Does ZeroCode support stream responses in API calls?

Open felipeEngineer2020 opened this issue 3 years ago • 3 comments

I'm testing an endpoint that stream all data back to client, it process the response in chunks. Total number of records in database are 800 but when I run my test Zerocode response only shows ONE record in the body of the streaming response list.

Content-Type is JSON

Thanks!

felipeEngineer2020 avatar Mar 08 '22 16:03 felipeEngineer2020

@felipeEngineer2020 , I think you can do it by adding a wrapper. @BeTheCodeWithYou can help here, something like this I think he has done in the past I guess.

authorjapps avatar Mar 10 '22 11:03 authorjapps

Can you please provide an example? Thanks.

felipeEngineer2020 avatar Mar 10 '22 14:03 felipeEngineer2020

I'm testing an endpoint that stream all data back to client, it process the response in chunks.

Is it a async call ?

  1. Can you please share your current API calls, how it responds e.g. Browser output or Postman screenshot etc?
  2. Can you also share how you're doing it using zerocode steps?

nirmalchandra avatar Mar 10 '22 15:03 nirmalchandra