Quantcast
Channel: Mockaroo Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 2665

How do I use an API to query data from a dataset?

$
0
0

So, I actually tried that. Here is my code in my API handler script:'

schema "mh_providers_static"
from_dataset("mh_providers_static", "resourceId", resourceId: request_params['id'])

But I always get this error when I try this:
{"error":"methodmethod_missing' for class Api::VirtualServiceSandbox' is private"}

Which makes me think that the from dataset function is a private function/method and is not callable by the API library.


Viewing all articles
Browse latest Browse all 2665

Trending Articles