REST API endpoints for gitignore

Use the REST API to get .gitignore templates that can be used to ignore files and directories.