Created
December 4, 2013 19:02
-
-
Save BrianGenisio/7793430 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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