OData EntitySetController.DeleteLink single quotes in parameter: relatedKey

Topics: ASP.NET Web API
Feb 14, 2013 at 2:03 AM
Hi,

Am not sure why, but using the EntitySetController base class and passing the related entity key in the URL like this:

DELETE ~/api/Matter('900E8BA7-C2AB-485F-AF7D-6720E5698339')/$links/Custodians('9AD8F5DD-D9FE-40D5-B81D-F6D3CEA9A712')

The relatedKey parameter is passed keeping the single quotes, like this:
"'9AD8F5DD-D9FE-40D5-B81D-F6D3CEA9A712'"

It works fine omitting the single quotes, but then it is not consistent with the the entity set portion of the URL.

Is this by design?

Thanks