Skip to content

Instantly share code, notes, and snippets.

@JogoShugh
Created February 12, 2014 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JogoShugh/8960965 to your computer and use it in GitHub Desktop.
Save JogoShugh/8960965 to your computer and use it in GitHub Desktop.
namespace VersionOne.Arena.Module.ManageBacklog
open System.Reflection
[<assembly: AssemblyVersion("1.0.0.0")>]
[<assembly: AssemblyFileVersion("1.0.0.0")>]
do()
open VersionOne.Arena.Intrastructure.Web
type ManageBacklogController() =
inherit System.Web.Mvc.Controller()
member this.Index() = this.View()
type public ManageBacklogModule() =
inherit DefaultModule<ManageBacklogController>()
override this.GetBaseControllerRoute() = "ManageBacklog"
namespace VersionOne.Arena.Module.ManageBacklog.Api
open System.Web.Http
type ApiController() =
inherit System.Web.Http.ApiController()
member this.Get () = "We got it! Here's your messages!"
[<HttpGet>]
member this.ByName name = "Thanks! Here's your name: " + name
[<HttpGet>]
member this.Version () = "Version A"
[<HttpGet>]
member this.EndPoints () =
let items = [|"Get"; "ByName"; "Version"|]
this.Json(items)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment