Skip to content

How to handle a 200 response but response struct is not expected ? #488

Closed Answered by jeevatkm
y4code asked this question in Q&A
Discussion options

You must be logged in to vote

@y4code Have a look at the section Features on the readme. That mentions the details of auto unmarshal for success and error scenarios.
Then, if you follow the godoc from the readme.

It covers details about HTTP status codes on method doc.

So, you can use your GenericResDTO on any scenario, and Resty does not limit you.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jeevatkm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #487 on November 04, 2021 05:24.