Skip to content

ServicaStack.Swagger captures only the first route in service #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
RTS-tender opened this issue Jan 22, 2013 · 0 comments
Open

ServicaStack.Swagger captures only the first route in service #1

RTS-tender opened this issue Jan 22, 2013 · 0 comments

Comments

@RTS-tender
Copy link

Go to HelloText class (or any class that is describing requests to REST service, i.e. HelloImage or Hello - in this particular example). Add one more route for the request.

[Route("/hellotext/{Name}", Summary = "Hello Text Service")]
[Route("/abc/{Name}", Summary = "ABC Text Service")]
public class HelloText
{
[ApiMember(Name = "Name",
Description = "Name Description",
ParameterType = "path",
DataType = "string", IsRequired = true)]
public string Name { get; set; }
}

Go to local swagger-page (localhost:yourport/swagger-ui.html) or to resouces page (localhost:yourport/resources) and you'll see that "/abc/" route is captured and "/hellotext" is not

/resource/abc
/resource/helloimage
/resource/hello

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant