Feature Requests

Feature, docs and use-case samples requests for ServiceStack. If you can, focus on the end-user benefit / use-case, rather than the technical details so we can focus on the end-goal and free us to work on how best to achieve it. Features can also include supporting content, e.g. a starter project on how to use ServiceStack with another product (e.g. SS + SharePoint).

I suggest you ...

You've used all your votes and won't be able to post a new idea, but you can still search and comment on existing ideas.

There are two ways to get more votes:

  • When an admin closes an idea you've voted on, you'll get your votes back from that idea.
  • You can remove your votes from an open idea you support.
  • To see ideas you have already voted on, select the "My feedback" filter and select "My open ideas".
(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can support and comment on it.

If it doesn't exist, you can post your idea so others can support it.

Enter your idea and we'll search to see if someone has already suggested it.

  1. Bug: gateway also changes razor view that will be selected

    I have the following code

    ```
    public class EditAccountAddressPageService : ServiceBase
    {
    public object Get(EditAccountAddressPage request)
    {
    return Gateway.Send(new GetAddress() { AddressId = request.Id });
    }
    }
    ```

    The problem is the razor view taken now is `GetAddress.cshtml`

    1 vote
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      1 comment  ·  Flag idea as inappropriate…  ·  Admin →
    • Localize Login redirect

      our site has the following route format: /[Locale]/RestOfPath

      The problem is that the redirect url always redirects to /Login instead of /[Locale]/Login. Could you turn AuthenticateAttribute.DoHtmlRedirectIfConfigured into a static Func instead of a static method so it is overridable?

      1 vote
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        1 comment  ·  Flag idea as inappropriate…  ·  Admin →
      • support F# data type for serialization and deserialization

        This is specially for option type and discriminated unions. Currently it is not supported by Servicestack.Text. It would be great to have support for that.

        For

        type City = Abad | Pune

        [<CLIMutableAttribute>]
        type Person = {
        FirstName:string
        LastName: string option
        City : City
        }

        let p1 = {FirstName = "Foo"; LastName = Some "Bar"; City = Pune}

        let jss = new JsonStringSerializer()
        let p1Str = jss.SerializeToString(p1)

        It is serializing
        "{"FirstName":"Foo","LastName":{"Value":"Bar"},"City":{"Tag":1,"IsAbad":false,"IsPune":true}}"

        Where is should be
        "{"FirstName":"Foo","LastName":"Bar","City":"Pune"}"

        For reference https://github.com/Microsoft/fsharplu/wiki/fsharplu.json is library by MSR.

        It would be great to have this feature so DTO can be written in F# types. Currently…

        14 votes
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          Signed in as (Sign out)
          You have left! (?) (thinking…)
          1 comment  ·  Flag idea as inappropriate…  ·  Admin →
        • pagination

          Add support for pagination in queries with dynamodb.

          Actually, when you set "limit" in Query or Scan methods, the first elements are obtained. This could be the first page. but there is no method that enables you obtain the second or third page.

          Maybe, you can add a GetPage method, that returns a collection wrapper, inherited from Collection<T>. This wrapper could have the last evaluated key.

          Then, GetPage method, could accept a query or scan expression, a page size and the last evaluated key

          This could be very usefull for applications that needs paginate some results but don't need retrieve…

          31 votes
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            Signed in as (Sign out)
            You have left! (?) (thinking…)
            0 comments  ·  Flag idea as inappropriate…  ·  Admin →
          • auto update http://github.servicestack.net/

            http://github.servicestack.net/ss_admin/autoquery/QueryRepoCommits

            seems not to be updated since 2015-09-26. Maybe put an auto pull on the git repos behind it?

            1 vote
            Vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              Signed in as (Sign out)
              You have left! (?) (thinking…)
              0 comments  ·  Flag idea as inappropriate…  ·  Admin →
            • support caching in java AndroidServiceClient

              Using servicestack client in mobile development with Xamarin gives so much benefits and caching dramatically improves performance and user experience.
              It would be nice to have same caching support for all clients (.NET, JAVA, ..)

              2 votes
              Vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                Signed in as (Sign out)
                You have left! (?) (thinking…)
                0 comments  ·  Flag idea as inappropriate…  ·  Admin →
              • Create Auto Crud

                Take a project like http://www.mattjcowan.com/funcoding/2013/05/11/restful-api-and-ui-for-typed-views-and-typed-lists/
                and lift it to the next level.
                Purpose: Point ActiveScaffold with AutoCrud to your database, and you get a half sensible CRUD web interface to maintain it. In other words, an instant backoffice.
                This is orthogonal to any other API usage of ServiceStack.

                Inspired by the Rails equivalent "https://github.com/activescaffold/active_scaffold&quot; that is very nicely designed, with both configuration and override possibilities.

                19 votes
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
                  0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                • Redis Cache value compression

                  Redis and clients are typically IO bound and the IO costs are typically at least 2 orders of magnitude in respect to the rest of the request/reply sequence. Smaller payloads will give you higher throughput and lower latencies.

                  The ICacheClient interface should provide an option to enable compression. This will store a compressed string representation in the cache store (except in memory). Default should be false.

                  Some interesting reads:
                  http://stackoverflow.com/questions/6556631/compressing-strings-before-putting-them-in-redis-does-it-make-sense
                  http://stackoverflow.com/questions/10909602/does-redis-db-has-built-in-compression-option

                  2 votes
                  Vote
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    Signed in as (Sign out)
                    You have left! (?) (thinking…)
                    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                  • Optionally decorate DTO's with OrmLite attributes

                    For very small Xamarin Applications, it makes sense to use the same data models in the App as in the API backend.
                    This could easily be achieved, if the OrmLite attributes such as [PrimaryKey], [Unique] and so on are exposed.
                    This would of course be an opt-in behaviour, because by default those attributes are for internal usage.

                    1 vote
                    Vote
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      Signed in as (Sign out)
                      You have left! (?) (thinking…)
                      0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                    • pagination bug mssql

                      We have a view:

                      `CREATE VIEW StockInformation AS SELECT dbo.Product.Code AS ItemCode, dbo.Warehouse.Code AS WarehouseCode, dbo.StockIndicator.Code AS StockIndicatorCode, dbo.Stock.StockOnShelve, dbo.Stock.StockAvailable,
                      dbo.Stock.StockPurchaseBackorder, dbo.Stock.StockFirstPurchaseDeliveryDate
                      FROM dbo.Stock INNER JOIN
                      dbo.Warehouse ON dbo.Stock.WarehouseID = dbo.Warehouse.WarehouseID INNER JOIN
                      dbo.StockIndicator ON dbo.Stock.StockIndicatorID = dbo.StockIndicator.StockIndicatorID RIGHT OUTER JOIN
                      dbo.Product ON dbo.Stock.ProductID = dbo.Product.ProductID`

                      and the following query:

                      var stocks = con.Select<StockInformation>(con.From<StockInformation>().OrderBy(x=> x.ItemCode).Limit(pageSize * pageNumber, pageSize));

                      The first page results into query:

                      SELECT TOP [pageSize] ... FROM StockInformation.

                      The second query looks like this:

                      SELECT * FROM (SELECT "ItemCode", "WarehouseCode", "StockIndicatorCode", "StockOnShelve", "StockAvailable", "StockPurchaseBackorder", "StockFirstPurchaseDeliveryDate", ROW_NUMBER() OVER (ORDER BY "StockInformation"."ItemCode") As RowNum
                      FROM "StockInformation") AS RowConstrainedResult WHERE RowNum…

                      0 votes
                      Vote
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        Signed in as (Sign out)
                        You have left! (?) (thinking…)
                        1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                      • Parcelable in Android Studio auto-generated dtos

                        Can you make parcelable the auto-generated dtos by Android plugin for Android Studio?

                        3 votes
                        Vote
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          Signed in as (Sign out)
                          You have left! (?) (thinking…)
                          0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                        • Allow DateHandler to be specified at field level

                          It is currently possible to serialize dates as ISO8601DateOnly and ISO8601.

                          https://gist.github.com/georgehemmings/42d9841913d1da01e91b

                          The date handler applies to all DateTime fields in the object.

                          Where a DateTime field is representing only a date, it would be nice to emit this in ISO8601DateOnly but leaving any other DateTimes to emit in full ISO8601 format.

                          1 vote
                          Vote
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            Signed in as (Sign out)
                            You have left! (?) (thinking…)
                            0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                          • Support Changing ViewPages directory

                            Support Allowing Custom ViewPages directory
                            Right now the convention of using a folder in root works great for the general case (We've been on service stack razor for at least a year). With that said we hit the point that we need to move the views into a subfolder to easier support a part of the subcontrol strategy.

                            Would love to have the convention be default and a easy way to change the base folder for vies on the apphost configure method.

                            6 votes
                            Vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              Signed in as (Sign out)
                              You have left! (?) (thinking…)
                              0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                            • Improvements for batched requests

                              I've started working with request batching, which is a really nice feature. Everything works, but there two improvements I'd like to see.

                              Firstly, for IReturnVoid requests there is SendAllOneWay, but there is no async version of that method.

                              Secondly, I'd like to be able to specify a http Verb with the SendAll methods. The implementation should select the correct method in the service, both when calling a single request method multiple times, but also for the batched method. Right now the batched service methods always need to be Any(), it would be nice to be able to have Delete(OrderID[] orders).

                              3 votes
                              Vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                Signed in as (Sign out)
                                You have left! (?) (thinking…)
                                0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                              • smal change in IndexOperationsControl.RenderRow

                                You could do a little modification to the IndexOperationsControl.RenderRow method, so that no row for an operation is rendered if no formats are available in the calling scenario.
                                Currently, if I protect an operation with
                                [Restrict(VisibilityTo = RequestAttributes.InternalNetworkAccess | RequestAttributes.AnyFormat)]
                                and i connect from an external network I see the operation with all formats disabled. It would be better not to see the operation at all.

                                1 vote
                                Vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  Signed in as (Sign out)
                                  You have left! (?) (thinking…)
                                  1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                                • OpenID Connect Auth Provider

                                  "OpenID Connect (OIDC) is an authentication layer on top of OAuth 2.0, an authorization framework." The benefit to developers and consumers is a more simplified way to add a new Auth provider which would provide some standard user info.
                                  http://openid.net/connect/

                                  62 votes
                                  Vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    Signed in as (Sign out)
                                    You have left! (?) (thinking…)
                                    3 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Add Metrics.NET Adapter

                                    Add support for Metrics.NET: https://github.com/etishor/Metrics.NET

                                    They already have adapters for Nancy & Owin: https://github.com/etishor/Metrics.NET/tree/master/Src/Adapters

                                    I've also posted a question wheter the maintainer of Metrics.NET has any plan in doing it for ServiceStack in his repo: https://github.com/etishor/Metrics.NET/issues/101

                                    16 votes
                                    Vote
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      Signed in as (Sign out)
                                      You have left! (?) (thinking…)
                                      0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Support oAuth2 login to Swagger API

                                      Swagger now support oAuth login page to create a access_token to apply to a oAuth protected API: http://developers-blog.helloreverb.com/enabling-oauth-with-swagger/

                                      Please could you add a similar capability to ServiceSatck.SwaggerFeature that enables SS developers to add a similar capability to their own APIS that are protected by oAuth.

                                      47 votes
                                      Vote
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        Signed in as (Sign out)
                                        You have left! (?) (thinking…)
                                        1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                                      • Allow the NativeTypes clients to support the standard .Net format for TimeSpan

                                        When setting the TimeSpanHandler to use TimeSpanHandler.StandardFormat the NativeType clients are not able to deserialize TimeSpans because they are expecting the format to be XSD duration.

                                        5 votes
                                        Vote
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          Signed in as (Sign out)
                                          You have left! (?) (thinking…)
                                          0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                        • 3 votes
                                          Vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            Signed in as (Sign out)
                                            You have left! (?) (thinking…)
                                            0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                          • Don't see your idea?

                                          Feature Requests

                                          Feedback and Knowledge Base