Jump to content

Swagger UI Reports


Taurec

Recommended Posts

Taurec

Hi,

i try to get via swagger Ui the Http adr. from:

 

Reports Get /Reports/Items/Download

 

Para:

ReportView: Reportdata

DisplayType: Screen

Limit: 5

 

 

I get no response from the UI. It is only the activity bar displayed.

is the only with me? Or someone has the same problem?

 

Can someone please the HTTP address for this query type (for testing)

 

cu Taurec

 

 

Link to comment
Share on other sites

Taurec

Hi,

is there really nobody there can check if the swagger ui working with the request of the

 

report/ Get Reports/Item/download

 

It would be really nice if someone could check and can give me the address.

 

cu Taurec

Link to comment
Share on other sites

Taurec

Hello Like,

i'm not sure what you mean with really long time.

I try it, after request, about one hour and nothing is happen.

I'm not sure is is working on my pc.

can you give me please a working http adress with the request only for checking.

 

cu Taurec

Link to comment
Share on other sites

  • 1 month later...
Untoten

swagger works it just takes a really long time to respond.

Is this being worked on or is it accepted?  I would like to make the reports more accessible to users.

Link to comment
Share on other sites

Swagger is api documentation, not user readable reports unless they have software development skills.

Link to comment
Share on other sites

  • 2 years later...
  • 2 months later...
Angelblue05

Small question, I use a reverse proxy, so I understand why I have an issue with detecting the right address, but I am looking for a workaround.

 

In Swagger, it shows the right address https://emby.mydomain.com/openapi

But in the server selection box, it shows http://emby.mydomain.com:8096/emby

 

How can I fix it to show my correct domain? I could not figure out how to manually add the correct server address in this spot, since it dictates the testing of the api...

Edited by Angelblue05
Link to comment
Share on other sites

Happy2Play

Small question, I use a reverse proxy, so I understand why I have an issue with detecting the right address, but I am looking for a workaround.

 

In Swagger, it shows the right address https://emby.mydomain.com/openapi

But in the server selection box, it shows http://emby.mydomain.com:8096/emby

 

How can I fix it to show my correct domain? I could not figure out how to manually add the correct server address in this spot, since it dictates the testing of the api...

 

 

What server selection box?

 

So you are saying these don't match each other?

 

5bb41136947ae_swagger.jpg

Edited by Happy2Play
  • Like 1
Link to comment
Share on other sites

It works like this:

  • When you click on the API link on the server dashboard page, that link takes you to the swagger-ui 
  • This link includes another link back to your server's OpenApi description
  • This is the link you will see in the header of the Swagger UI
  • When you enter this link in the browser directly, you'll get a lot of json formatted text. This is the description of your server's API
  • And this text includes the external addresses - as the server thinks it is
  • This is where the dropdown is populated from

There's no simple workaround for this on our side, and I don't think it is worth the effort to address this because that whole thing is meant to allow you to browse and test the API for development but it's not meant for general public use.

 

If you really need this for some reason, you can

  • download the api text from your server (http://localhost:8096/emby/openapi)
  • Modify it's content (the part with the server address)
  • and tell your reverse proxy to statically serve this modified file when it's queried from external
  • Like 1
Link to comment
Share on other sites

Angelblue05

Thanks so much!

 

I switched the server address at the top to my local address and it works now for testing. I was getting tired of copy pasting and editing the url in browser so I can see the result :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...