added a rough work for getting post api