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

Setting the "State" field with a URL param, that then generates a random address for that state

$
0
0

Hello there… hope this one is easy:

So I have a schema to generate a random Address limited to the US. What I am hoping I can do is pass a state in a get request like ?state=California which is then used to filter down the results to only California.

So I can call my get request without any params to get any of the 50 states addresses or I can pass a state in the params to get a random address for that state.

Is this possible?


Viewing all articles
Browse latest Browse all 2665

Trending Articles