Add API for parsing resource paths and extracting the identifier
Assume we get a "/foo/bar/1234" and we want to find the ID, ideally there woudl be a function getId("Bar", $path)
which extracts it based on the api-platform route and proper error handling.
Use case: In alma we get a person passed as a path and need to fetch it internally.