Skip to content

Instantly share code, notes, and snippets.

@marckm
Created April 16, 2013 09:45
Show Gist options
  • Save marckm/5394710 to your computer and use it in GitHub Desktop.
Save marckm/5394710 to your computer and use it in GitHub Desktop.
Very simple API values controller
namespace DataIntegrationService.WebApi.Controllers
{
using System.Collections.Generic;
using System.Web.Http;
/// <summary>
/// Sample Api controller.
/// </summary>
public class ValuesController : ApiController
{
// GET api/values
public IEnumerable<string> Get()
{
return new string[] { "value1", "value2" };
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment