create post and get api to added logs