Need to setup an endpoint url with specific parameters

I am trying to create an endpoint url for customers to access our data. I have tried several ways to do this but non seem to work. I define, API’s (endpoint designer), the GET method with a url endpoint of: /vehicles/{id}?fields={resource} A fully qualified URL would look like: /vehicles/108?fields=vin,model where I would get back the vin number and model of the vehicle. What I don’t want is anybody to use /vehicles/108 which would result in all data related to this vehicle. Any ideas in how to achieve this?

Hi Ted,

Unfortunately it isn’t possible to set up the two paths in this way at the moment as the whitelist in the /vehicles/{id} path would overwrite the settings in the query string. You could instead try using the URL Rewriting option in the Endpoint Designer to ensure that there is always a parameter present in the query string when a user attempts to access the /vehicles/{id} endpoint. Instructions on how to do this can be found in our documentation at this link.

Hope that helps. Let me know if you have any questions.

Kind regards,

Jess @ Tyk