waldronlab / bedbaser

An R client for bedbase.org
1 stars 0 forks source link

make API url configurable? #5

Open nsheff opened 1 day ago

nsheff commented 1 day ago

I may want to connect to an API at a different URL, for testing or development purposes for example.

Right now it seems to be harded coded to api.bedbase.org

Could the BEDbase() constructor allow a URL param?

jwokaty commented 1 day ago

I know the API url might change but it needs to be hardcoded for now because it depends on the AnVIL package, which uses rapiclient. rapiclient uses Swagger 2.0 so I also have to convert the API yaml from OpenAPI 3.1 to Swagger 2.0. I'd like to do this in the future to give more freedom to the user when rapiclient can handle OpenAPI 3.1 and a conversion doesn't have to be performed because it's actually using the file in the inst path.