{ "opencollection": "1.0.0", "info": { "name": "GitHub v3 REST Gitignore API", "version": "1.1.4" }, "items": [ { "info": { "name": "Gitignore", "type": "folder" }, "items": [ { "info": { "name": "GitHub Get All Gitignore Templates", "type": "http" }, "http": { "method": "GET", "url": "{protocol}://{hostname}/api/v3/gitignore/templates" }, "docs": "List all templates available to pass as an option when [creating a repository](https://docs.github.com/enterprise-server@3.9/rest/repos/repos#create-a-repository-for-the-authenticated-user)." }, { "info": { "name": "GitHub Get a Gitignore Template", "type": "http" }, "http": { "method": "GET", "url": "{protocol}://{hostname}/api/v3/gitignore/templates/:name", "params": [ { "name": "name", "value": "octocat", "type": "path" } ] }, "docs": "Get the content of a gitignore template.\n\nThis endpoint supports the following custom media types. For more information, see \"[Media types](https://docs.github.com/enterprise-server@3.9/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types).\"\n\n- **`application/vnd.github.raw+json`**: Returns the raw .gitignore contents." } ] } ], "bundled": true }