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 MustBeVersion : IRouteConstraint | |
{ | |
public bool Match(HttpContextBase httpContext, Route route, string parameterName, RouteValueDictionary values, | |
RouteDirection routeDirection) | |
{ | |
var val = values[parameterName] as string; | |
if (string.IsNullOrEmpty(val)) return false; | |
int versionNumber; |
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
{ | |
"provider": { | |
"name": "Event API" | |
}, | |
"consumer": { | |
"name": "Consumer" | |
}, | |
"interactions": [ | |
{ | |
"description": "a request to retrieve all events", |
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
{ | |
"provider": { | |
"name": "Event API" | |
}, | |
"consumer": { | |
"name": "Consumer" | |
}, | |
"interactions": [ | |
{ | |
"description": "a request to retrieve all events", |