Primo commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using Step.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Web.Http;
|
||||
using System.Web.Http.Description;
|
||||
|
||||
namespace Step.Controllers
|
||||
{
|
||||
|
||||
[RoutePrefix("api/data")]
|
||||
public class DataController : ApiController
|
||||
{
|
||||
[ResponseType(typeof(TestModel))]
|
||||
[Route(""), HttpGet]
|
||||
public IHttpActionResult Test()
|
||||
{
|
||||
return Ok(new TestModel() { Id = 42 });
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user