I Have an API which fetches data for a particular user based on the supplied User ID. Since I am only fetching the data from a DB, I have made this API use GET Requests.
URL : https://ui.sms.co.in:8443/config/v1/camp
HTTP Method: GET
Request Parameters:
type:1
userId:1000
startDate:2019-05-28
endDate:2019-05-28
After Reading from various Websites, I found that I should not expose UserId in the URL and I should change the API from using GET to POST. By making it POST, I will not be exposing any data in the URL, but I don't want to make it POST since I am not creating any resource. Should I make it POST; would that be wise?