galaxyproject / training-material

A collection of Galaxy-related training material
https://training.galaxyproject.org
MIT License
303 stars 891 forks source link

Swagger not supplying `.json` in some API URLs that work otherwise. #4931

Open paulzierep opened 3 months ago

paulzierep commented 3 months ago

When I try the example: https://training.galaxyproject.org/api/#/tools/get_psl__toolId__json with toolshed.g2.bx.psu.edu/repos/iuc/abricate/maaslin2 I get an empy json.

hexylena commented 3 months ago

The most likely cause then is that we haven't observed it on any of the servers that we check. Is it installed somewhere?

hexylena commented 3 months ago

We can only collect this information from running galaxies with that tool installed.

paulzierep commented 3 months ago

sorry I meant the default example toolshed.g2.bx.psu.edu/repos/iuc/abricate/abricate which is on EU ...

hexylena commented 3 months ago

You are missing the .json on the end...

https://training.galaxyproject.org/training-material/api/psl/toolshed.g2.bx.psu.edu%2Frepos/iuc/abricate/abricate.json

hexylena commented 3 months ago

/psl/{toolId}.json

Get the GTN's public server tool listing for a specific tool ID. It lists all known public servers that are reachable at the time of the GTN's deployment, and which versions of this tool are available. It's very important that you strip the version component!

hexylena commented 3 months ago

not sure why that's not being added by swagger since it's in the path provided, but it's at least documented :sweat_smile: