v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2023-11-288093493.9 MB
gitignore

Get a gitignore template

The API also allows fetching the source of a single template. Use the raw media type to get the raw contents.

get/gitignore/templates/{name}

Path parameters

namestring required

Response

Response

namestring required
sourcestring required

Example response

{
  "name": "C",
  "source": "# Object files\n*.o\n\n# Libraries\n*.lib\n*.a\n\n# Shared objects (inc. Windows DLLs)\n*.dll\n*.so\n*.so.*\n*.dylib\n\n# Executables\n*.exe\n*.out\n*.app\n"
}