request.get python url-path instead of query argument passing in
<p>I am trying to pass in parameters into my REST API get request, like this:</p>

<p><code>parameters = {'key':value}</code></p>

<p><code>response = requests.get('some url', params= parameters)</code></p>

<p>but the API that I am using uses a url-path instead of a query argument. I want it like:</p>

<p><code>/api/resource/parametervalue</code></p>

<p>and it comes out like:</p>

<p><code>/api/resource?parameter=value</code></p>

<p>I've searched all over the web to find if I can somehow change what response.get takes in, but I can't seem to find it. What should I do?</p>

<p>Thank you!</p>

<p>you can try like this :
you need is a url /api/resource/parametervalue </p>

<pre><code>response = requests.get('some url'+'/'parameters)//url/api/resource/parametervalue it's a url
response = requests.get('some url',params)//url/api/resource?params it't a url with params
</code></pre>

python rest api get