working on post api