- Code: Select all
[Route("/Services/Restart", "GET")]
[ApiResponse(Description="Not authorised", StatusCode=403)]
[ApiResponse(Description="Not authenticated", StatusCode=401)]
[ApiResponse(Description="Restart request sent OK", StatusCode=204)]
public partial class RestartRequest
{
}
Otherwise you get "Index (zero based) must be greater than or equal to zero and less than the size of the argument list." which is because ServiceStack can't work out the route as the JiwaFinancials.Jiwa.JiwaServiceModel names space does not define the route this is done in the plugin and only appears in the generated code. This error happens for any route that can't be worked out. The first annotation of the route is what is needed.
Whilst I have resolved this I am posting this here in case someone else runs into the problem.