nielsfalk / ktor-swagger

Apache License 2.0
133 stars 38 forks source link

Changes to support String as response type #16

Closed dbrewster closed 5 years ago

dbrewster commented 6 years ago

This change supports the operation: put<location, String>(.....)

This allows the body of input to be a string and sets the content-type to text/plain

There are other ways to do this that are more generic and I can do that if you like but this gets the job done.

dbrewster commented 6 years ago

This fixes #17

JLLeitschuh commented 6 years ago

Thanks for the PR! Any chance for adding a test that covers this use case as well?