Message Boards Message Boards

GROUPS:

CloudDeploy APIFunction accepting string?

Posted 4 months ago
360 Views
|
1 Reply
|
1 Total Likes
|

base function:

beta = Function[{x}, 
    y = ResourceData[ResourceObject[x]]
]

then I am deploying this using CloudDeploy:

CloudDeploy[APIFunction[{"x" -> "String" }, beta[#x] &]] ;

this giving back url but when I add ?x="Meteorite Landings" this in front of the link I am getting $Failed error

also how do I grab the dataset in json format?

POSTED BY: Sag Mk
Answer
Posted 7 days ago

I think the quoting is messing it up, resulting in the resource not being found.

Try ?x=Meteorite+Landings instead.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract