question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do we publish it in a child path?

See original GitHub issue

We have our feathers API published under a path. Imagine something like api.domain.com/v2

To do that, we use a reverse proxy (Traeffik) So the docs would be available under api.domain.com/v2/docs

However, the swagger file still appears in the root under api.domain.com/docs, while the whole feathers app runs under api.domain.com/v2. What should be doing?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Mairucommented, Sep 20, 2022

Well, the indexFile option of feathers-swagger.swaggerUI could be used to define a custom HTML file. In addition now with SwaggerUI >= 4.9, there is an initializer script, which you can define by setting the getSwaggerInitializerScript option. There you can specify the url parameter.

See the options in the readme https://github.com/feathersjs-ecosystem/feathers-swagger/blob/3621b7796eb371893dde19a1c40c0a0112fa82b2/README.md#swaggerswaggeruioptions

Here is the default implementation https://github.com/feathersjs-ecosystem/feathers-swagger/blob/3621b7796eb371893dde19a1c40c0a0112fa82b2/lib/swagger-ui-dist.js#L3-L21

But I will see if I can add support for it, for the next version.

0reactions
huulbaekcommented, Sep 20, 2022

I’m wondering how to do this in version 2?

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Helpful Tips For Publishing Your Child's Story
To self-publish, your young writer will need to complete a manuscript (including editing), undertake layout and design specific to the self-publishing venue, ...
Read more >
How to Publish a Children's Book: A Guide for New Authors
Complete manuscript: Writing is one of the most important steps. Make sure your copy is a children's story and that it's well written....
Read more >
5 Easy Steps to Publishing Your Own Children's Book
Decide “Where” You Want to Publish Your Children's Book. The first step to consider is where you plan on publishing your book. In...
Read more >
How to Publish a Children's Book: A Guide for First-Time Authors
How to Publish a Children's Book: A Guide for First-Time Authors · 1. Know the market · 2. Refine your manuscript · 3....
Read more >
How to Self-Publish a Children's Book in 7 Magical Steps
1. Before you commit to any single publishing path, it's always good to know what you're in for.x 2. In researching the market,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found