Skip to Content
0
Jul 20 at 09:42 AM

How to know when to apply single quote in URL?

79 Views

Hi, I am trying to delete an entry, I used the Olingo library and wrote java code, and also replicate the below mention request in postman.

While testing first when I am using this endpoint for deleting an entry https://services.odata.org/TripPinRESTierService/(S(t3zbjkgooaodo2gkucai4qbw))/People('russellwhyte') in which russellwhite comes under singles quotes, then it is working fine.

But when i am using https://orga96614eb.api.crm8.dynamics.com/api/data/v9.2/accounts('25373cd9-9ae8-eb11-bacb-000d3ac9969a') in which GUID comes under single quotes is not working and giving response 400


Later when i removed single quotes from GUID, using URL https://orga96614eb.api.crm8.dynamics.com/api/data/v9.2/accounts(25373cd9-9ae8-eb11-bacb-000d3ac9969a)

then it worked fine.

So, why is that, and how does one comes to know when to use single quotes in URI? Please guide

Attachments

tip7z.png (16.4 kB)