Skip to content
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

APIs not getting listed in pipelined router #1

Open
binupa opened this issue Nov 4, 2022 · 0 comments
Open

APIs not getting listed in pipelined router #1

binupa opened this issue Nov 4, 2022 · 0 comments

Comments

@binupa
Copy link

binupa commented Nov 4, 2022

I already have a my shelf Router router with multiple routes. I tried to cascade SwaggerUI as handler. However, none of my API routes are getting listed in swagger UI. Please assist. The documentation provided does not cover such scenarios

    var staticHandler =
        createStaticHandler('wwwroot', defaultDocument: 'index.html');
    return Pipeline()
        .addMiddleware(corsHeaders())
        //.addHandler(router);
        .addHandler(Cascade()
            .add(router)
            .add(staticHandler)
            .add(SwaggerUI('wwwroot/swagger.yaml',
                title: 'MyApp API Doc'))
            .handler);
openapi: 3.0.0
info:
  description: "API Test"
  version: "1.0.0"
  title: "MyApp API"
servers:
  - url: http://localhost:8080
    description: "MyApp Server"
tags:
  - name: "/api/users"
    description: "User resource"
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