I suggest you ...

Enable FluentAPI to add dynamically response type

It's possible to add an overload in Fluent API to register also the response type together with the routing path?

For example: Routes.Add(requestType,restPath,verbs,responseType).

This can be useful when you can't use the IReturn Interface on DTO objects (for example inside UniversalApp PCL).

3 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Anonymous shared this idea  ·   ·  Admin →
    declined  ·  AdminDemis J Bellot (Developer, ServiceStack) responded  · 

    This defeats the primary purpose of the `IReturn` marker for enabling a terse strong-typed generic API on Service Clients which is only possible if the generic type information is statically defined.

    You can use one of the other fallback options for specifying the ResponseType:
    https://github.com/ServiceStack/ServiceStack/wiki/Metadata-page#matching-requests-with-their-response-dtos

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base