简体   繁体   中英

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.

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??

Sample below:

http://localhost:8080/subscriber/topics/FNOL/UK/mariane/https://endpoint.com

The {url} path segment needs to be encoded.

http://localhost:8080/subscriber/topics/FNOL/UK/mariane/https%3A%2F%2Fendpoint.com

https://en.wikipedia.org/wiki/Percent-encoding

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM