You need to sign in to do that
Don't have an account?
Rajeesh vr
Query string is not working in test class for REST API
I have created a REST API with url like "param1/param2/?query1=value1&query2=value2". The API is working and I am getting the response from Salesfore. But when I tried to create a test class for the above API, I am not getting query values passing from the test class to the API Apex class. I have tried to debug it and I was getting null values for the queey strings passed from the test class. Any idea why test class is not supporting query string in the API URL?
Please let me know if this is helpful, or share your code if there is more to resolve.