How do I use a forward slash in my api call?
<p>Hello all Im starting to use APIs for development purposes and ive come accross and api call that uses / as a means of separating values I've been putting ? </p>

<pre><code>var requestURL = 'https://alpha.openaddressesuk.org/addresses.json?';

    $.getJSON(requestURL, {
        'street' : street,
        'town'  : town,
        'postcode' : postcode,
    }, function(data) {
</code></pre>

<p>the result of the requesturl would be <a href="https://alpha.openaddressesuk.org/addresses.json?street=STREET?town=TOWN?postcode=POSTCODE" rel="nofollow">https://alpha.openaddressesuk.org/addresses.json?street=STREET?town=TOWN?postcode=POSTCODE</a></p>

<p>but I've noticed that some apis have / instead of ? in the request URL</p>

<p>So how would I do this </p>

<pre><code> var requestURL = 'http://transportapi.com/v3/uk/train/station/{{STATIONNAME}}/{{STATION DATE}}/{{STATION TIME}}/timetable.json?app_id=APPID&amp;app_key=APIKEY&amp;train_status=passenger';

    $.getJSON(requestURL, {
        'stationname' : stationname,
        'date'  : date,
        'time' : time,
    }, function(data) {
            console.log(data)
    }
</code></pre>

<p>but wouldn't that put ? in-between each parameter?</p>