API key in URL not working


#1

This is my request url:-

http://api/v2/test/_table/tablename?fields=*?api_key=somekey

i want to pass api key in url and not in request header but its not working.
Please help


#2

@netgains Your request URL has multiple query params try something like:

http://api/v2/test/_table/tablename?fields=*&api_key=somekey

The ‘?’ is meant to denote the start of the query any additional params appended to the resource path need to be separated by a ‘&’. There are some great tutorials on the internet if you are just getting started with REST API and the DreamFactory documentation also shows multiple API calls with multiple parameters. Let me know if you have any questions.


#3

Thanks mate you saved my day :slight_smile:


#4

@netgains You’re welcome, I’m glad the forum is working for you :wink:


#5

Thanks for that. I was looking for this answer for hours.