Solved an issue with nested resource , the new endpoint /profile/<username> broke the internal resource uri which were initially linked with pk