-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Do we want to auto-encode paths/char inputs to the apis?
example:
library(AnVIL)
library(httr)
library(jsonlite)mypath="github.com/vjcitn/vardemo/AnnotatingWGSVariantsWithBioc"
mypath
[1] "github.com/vjcitn/vardemo/AnnotatingWGSVariantsWithBioc"#this fails because of the "/"'s
fromJSON(content(dockstore$getPublishedWorkflowByPath(mypath),"text"))
$code
[1] 404
$message
[1] "HTTP 404 Not Found"
mypath2=URLencode(mypath,reserve=TRUE)
mypath2
[1] "github.com%2Fvjcitn%2Fvardemo%2FAnnotatingWGSVariantsWithBioc"
fromJSON(content(dockstore$getPublishedWorkflowByPath(mypath2),"text"))
$aliases
NULL
$author
[1] ""
$checker_id
NULL
$dbCreateDate
[1] 1.549286e+12
$dbUpdateDate
[1] 1.549296e+12
$defaultTestParameterFilePath
NULL
$defaultVersion
NULL
$description
NULL
$descriptorType
[1] "wdl"
$email
[1] ""
$full_workflow_path
[1] "github.com/vjcitn/vardemo/AnnotatingWGSVariantsWithBioc"