Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8585395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:03:08+00:00 2026-06-11T22:03:08+00:00

I’m trying to wrap my head around ServiceStack, and while it claims that it

  • 0

I’m trying to wrap my head around ServiceStack, and while it claims that it has really good documentation, it doesn’t seem to be the case so far. Is there a documentation that actually says which interfaces/base classes to use, and what do they do ?

Just.. have a bunch of quesitons, and can find very few answers.. A new API design shows an example of DTO implementing IReturn interface, and service inheriting from Service – but there’s no explanation if this is the preferred way now, is it required to implement IReturn, how to deal with POST/GET/etc, etc, etc..

Any links would be appreciated.

And yes, I have samples, but for example they don’t have anything on this IReturn interface.. and samples won’t beat the documentation anyways.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T22:03:09+00:00Added an answer on June 11, 2026 at 10:03 pm

    You can find all the documentation for the ServiceStack Web Framework on the wiki

    ServiceStack’s new API was just released this week which already contain the answers to all your questions. I would go back and read them in-full but I’ll extract the snippets that answers your questions:

    Is there a documentation that actually says which interfaces/base classes to use, and what do they do?

    Under the Introducing the New API section is:

    The new API design simplifies the existing IService and IRestService with this single unified interface:

    public interface IService {}
    

    That is now able to handle both RPC Service and Rest Service requests in a single class. The interface is just used as a Marker interface that ServiceStack uses to find, register and auto-wire your existing services. A convenience concrete Service class is also included which contains easy access to ServiceStack’s providers

    A new API design shows an example of DTO implementing IReturn interface, and service inheriting from Service – but there’s no explanation if this is the preferred way now

    The heading at the top of the wiki reads:

    Recommended for future Web Service Development

    As the new API Design offers many benefits over the existing API, we’re recommending its use for any new web service development. It will take us some time, but we intend to port all the old examples to adopt the new API ourselves. One reason to still prefer the older API is if you also wanted to support SOAP clients and endpoints which still requires the strict-ness enforced by the previous approach.

    Under the Inspiration heading reads:

    The beauty of this proposal was that it already fitted perfectly with ServiceStack’s existing message-based semantics which meant we were able to implement it in record time without any disruption or breaking changes to the existing code-base. The result is that you can now start creating new services along side your existing services and they’ll both continue to work seamlessly side-by-side.

    is it required to implement IReturn

    Under the heading Calling Services from a Typed C# Client is:

    lets say you take the normal route of copying the DTOs (in either source of binary form) so you have something like this on the client:

    [Route("/reqstars")]
    public class AllReqstars : IReturn<List<Reqstar>> { }
    

    The code on the client now just becomes:

    var client = new JsonServiceClient(BaseUri);
    List<Reqstar> response = client.Get(new AllReqstars());
    

    Which makes a GET web request to the /reqstars route. When a custom route is not present on the client it automatically falls back to using ServiceStack’s pre-defined routes.

    Finally you can also use the previous more explicit client API (ideal for when you don’t have the IReturn<> marker):

    var response = client.Get<List<Reqstar>>("/reqstars");
    

    All these APIs have async equivalents which you can use instead, when you need to.

    how to deal with POST/GET/etc,

    The entire API docs is effectively about explaining how Post’s Get’s work. You have a client.Get() on the client which calls the Get() on the server, or falls back to using Any() if it doesn’t exist.

    The bottom of the Wiki page goes through how to manually port your services from an older API to the newer one.

    And here are some examples using the new API:

    • The Razor Rockstars Service
    • The Home Page TODOs example
    • The Comprehensive test suite
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Basically, what I'm trying to create is a page of div tags, each has
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.