I'm trying to make a REST API call, but running into issues with the developerId parameter being sent incorrectly:
let developerId = "123#212";
let url = \`\${Constants.BASE_URL}\${marketId}/developers/\${developerId}\`;
return this.http.get(url);
The backend is only receiving 123
instead of 123#212
Here's what I've tried so far, without success:
Using encodeURIComponent
encodeURIComponent(${developerId})
Implementing a
HttpInterceptor
, following advice from this StackOverflow post
Interestingly, the REST API call works perfectly when using Postman, but not in an Angular environment