Open jerowe opened 7 years ago
Jillian,
currently you can't set response object manually but Raisin can generate one (a success one) automatically, for that you need to use Raisin::Entity to describe the response object.
See https://github.com/khrt/Raisin/blob/master/lib/Raisin/Plugin/Swagger.pm#L219 and https://github.com/khrt/Raisin/blob/master/examples/music-app/script/music_app_dbix.psgi#L46 and https://metacpan.org/pod/Raisin::Entity
I'll add it to my plan and try to implement with the next release.
Cool project!
I noticed when generating swagger I get an 'Unexpected Error'. How can I document the expected response in Raisin?
Thanks!