fixed return value for post entity and added client methods for post and fetching entities