Search code examples
odatarestier

RESTier Guid primary key 404 not found


I have an issue with RESTier if primary key is guid instead of int.

I can get all entities with url/restierapi/entity, but when i try to get single entity with url/restierapi/entity(guid) response is Not Found, but if I try url/restierapi/entity('guid') result is ok.

Someone as solution?

https://github.com/OData/RESTier/issues/547


Solution

  • url/restierapi/entity(guid) should work for OData 4, are you sure the guid is not being stored as a string?