Skip to content

Instantly share code, notes, and snippets.

@BrianGenisio
Created December 4, 2013 19:02
Show Gist options
  • Save BrianGenisio/7793430 to your computer and use it in GitHub Desktop.
Save BrianGenisio/7793430 to your computer and use it in GitHub Desktop.
public class VariablesController : ApiController
{
public IEnumerable<Variable> Get()
{
// get all
}
[Route("api/variables/{id}")]
public Variable Get( int id )
{
// get individual
}
[HttpGet]
[Route( "api/variables/{id}/getDistribution" )]
public DistributionReport GetDistribution( int id )
{
// get distribution report
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment