I have built an API using Django REST framework and I want to make a PUT request from my AngularJS web-app.
The problem occurs when the id consists of characters like "/".
An example could be the following:
- id = "text/additionalText"
- url: https://domainName.com/api/record/text/additionalText
So, as you can expect, the above parsed as 2 parameters and I get 404 (NOT FOUND).
I read this post (slashes in url variables) and then I tried to encode the id to "text%2FadditionalText" (using encodeURIComponent function) but didn't decoded from my server.
I can not change the id because it constructed by some other fields (user input), in order to be human readable.