add a post rest API and modified .gitignore.