/
Action1.cs
39 lines (32 loc) · 973 Bytes
/
Action1.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using FubuMVC.Core;
using FubuMVC.Swagger.Specification;
namespace FubuMVC.Swagger.Tests
{
[Description("An api description")]
public class ActionRequest
{
[RouteInput, Description("Namey name name"), Required]
public string input { get; set; }
[QueryString, Description("Queryee query")]
public string query { get; set; }
[Description("Fishy fish")]
[AllowableValues("value1", "value2")]
[DefaultValue("value1")]
public string redfish { get; set; }
[Required]
public bool required { get; set; }
public bool notrequired { get; set; }
}
public class Action1
{
public ActionResult Execute(ActionRequest request)
{
return new ActionResult();
}
}
public class ActionResult
{
}
}