API key in URL not working

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

@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.

2 Likes

Thanks mate you saved my day :slight_smile:

1 Like

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

2 Likes

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

1 Like