The answer depends on what kind of spec (controller, feature, request) you are writing, and what version of RSpec.
My answer is for the newer versions of RSpec. Older versions may require you to remove the “params:"
For controller specs, use: “get :action, params: {id: id}” where “action” is the controller action routed to by the URL.
For request specs, use “get ‘/api/v1/repairs’, params: {id: id}"
For feature specs, use “visit url” and I suppose you can use the capabilities of Rails path helpers (including #url_for) or just add it to the URL (e.g. “/api/v1/repairs?id=#i{id}"), but I can’t find any write-ups about testing APIs with feature specs, so I’m not sure this really makes sense.