Return to Snippet

Revision: 37750
at December 16, 2010 21:38 by timgeyssens


Initial Code
[RestExtension("myAlias")]
    public class Test
    {
        [RestExtensionMethod]
        public static string HelloWorld()
        {
            return "Hello world";
        }
        [RestExtensionMethod(allowAll=false , allowGroup="custom")]
        public static string AnotherWithPermissions()
        {
            return "Hello member in custom group";
        }

    }

Initial URL
http://umbraco.org

Initial Description
new in umbraco Juno, RestExtension and RestExtensionMethod attribute, no more need to update the restExtension.config file but simply mark type and methods...
(rest extensions are used for umbraco base)

Initial Title
Umbraco Juno, RestExtension and RestExtensionMethod attribute

Initial Tags


Initial Language
C#