Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Jul 24, 2013 @ 22:46
    Bo Damgaard Mortensen
    0

    Creating a custom REST datatype

    Hi all,

    I'm about to create a (dashboard) datatype for Umbraco which basically shows a CRUD table/grid with paging enabled. The data is from a custom database table and I'm considering going the REST way of creating this datatype using the AngularJS ng-table plugin.

    Creating such a datatype shouldn't be too big of a problem and I could go with Umbraco /base for the data handling. However, the data is quite sensitive (emails, names etc), so I don't want to expose the REST methods to everyone by i.e. /base/myBase/GetData.aspx.

    What exactly is the common approach to create a (restful) datatype in Umbraco which should display and handle sensitive data?

    I know I could go for the regular ASP.NET GridView, but... just no ;-) It's quite a drag working with that component, imo.

    Any suggestion on this is greatly appreciated!

    All the best,

    Bo

  • Anders Bjerner 487 posts 2989 karma points MVP 8x admin c-trib
    Jul 25, 2013 @ 12:59
    Anders Bjerner
    100

    You can use User.GetCurrent() even in /base extensions, so /base/myBase/GetData.aspx could display an error message if the user isn't logged in. You could also return some basic data for normal users in Umbraco and only return sensitive information like emails for adminstrators.

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Jul 25, 2013 @ 17:55
    Bo Damgaard Mortensen
    0

    Thanks a lot Anders, why didn't I think of that :-) Thanks a lot!

Please Sign in or register to post replies

Write your reply to:

Draft