Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getBody response blank in postman #316

Closed
hamzakaya opened this issue May 12, 2020 · 4 comments
Closed

getBody response blank in postman #316

hamzakaya opened this issue May 12, 2020 · 4 comments
Labels
Milestone

Comments

@hamzakaya
Copy link

why is this different response data
just postman like this

Screenshot from 2020-05-12 20-39-49
Screenshot from 2020-05-12 20-39-38

@chriskapp
Copy link
Member

Hi, ok maybe your route has not a fitting schema set i.e. Passthru to forward all incoming data to your action. You can also define a specific schema which describes the allowed input.

@chriskapp chriskapp added the bug label May 12, 2020
@chriskapp chriskapp added this to the 1.9.4 milestone May 12, 2020
@hamzakaya
Copy link
Author

I am experimenting with the default todo application, what do I need to do extra?

@chriskapp
Copy link
Member

So in your route you could change the /todo/:todo_id you could change the request schema to Passthru which basically means that all data is passed to the action.

@chriskapp
Copy link
Member

chriskapp commented May 20, 2020

Ok, I think I have found your problem, if you use the Passthru Schema at your route you receive as body a PassthruRecord instance, on this you can call the getPayload method to get the complete payload.

We have also commited a fix which applies all properties to the PassthruRecord for the next release s. apioo/fusio-impl@1288021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants