further refactor base/rest service into Umbraco.Web
This commit is contained in:
23
src/Umbraco.Web/BaseRest/RestExtensionMethodAttribute.cs
Normal file
23
src/Umbraco.Web/BaseRest/RestExtensionMethodAttribute.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Umbraco.Web.BaseRest
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
|
||||
public class RestExtensionMethodAttribute : Attribute
|
||||
{
|
||||
public bool AllowAll { get; set; }
|
||||
public string AllowGroup { get; set; }
|
||||
public string AllowType { get; set; }
|
||||
public string AllowMember { get; set; }
|
||||
public bool ReturnXml { get; set; }
|
||||
|
||||
public RestExtensionMethodAttribute()
|
||||
{
|
||||
this.AllowAll = true;
|
||||
this.ReturnXml = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user