This project is read-only.

OData EntitySetController.DeleteLink single quotes in parameter: relatedKey

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

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:

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?