[英]REST API Delete operation passing URL as a parameter
I have a rest subscriber resource for which i would need to delete a subscriber if it matches the criteria of topic-name,country,lob and url. 我有一个剩余的订户资源,如果它符合topic-name,country,lob和url的条件,我将需要删除该订户。
http://localhost:8080/subscriber/topics/ {topic-name}/{country}/{lob}/{url} http:// localhost:8080 / subscriber / topics / {topic-name} / {country} / {lob} / {url}
how should i send the request for the delete resource with URL escaping the special characters?? 我应该如何发送带有特殊字符的URL的删除资源请求?
Sample below: 示例如下:
http://localhost:8080/subscriber/topics/FNOL/UK/mariane/https://endpoint.com
The {url}
path segment needs to be encoded. {url}
路径段需要进行编码。
http://localhost:8080/subscriber/topics/FNOL/UK/mariane/https%3A%2F%2Fendpoint.com
https://en.wikipedia.org/wiki/Percent-encoding https://en.wikipedia.org/wiki/Percent-encoding
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.