Skip to content
GitmoapAPIBeta
Schema

ListTemplatesResponse

The templates of one kind, or of every kind.

Shape

  • itemsarray of TemplateSummary
    • The TemplateSummary schema
    • default_pathstringWhere the file usually goes: LICENSE, .gitignore, .gitmoap/catalog.yaml.
    • fieldsarray of TemplateFieldThe values the content asks for, in the order it first asks.
      • The TemplateField schema
      • labelstringWhat to call it next to the input that fills it in.
      • namestringThe placeholder's name — year stands for {{year}}.
    • keystringUnique within its kind: mit, rust, default.
    • kindTemplateKindlicensegitignorechangelogcontributingcode_of_conductsecuritycatalogWhat a template is for.
    • namestring
    • spdx_idstring or nulloptionalA licence's SPDX identifier.
    • summarystring or nulloptional

Example

Synthesized example
{
"items": [
{
"default_path": "default-path-bf84",
"fields": [],
"key": "key-0361",
"kind": "license",
"name": "payments-api"
}
]
}

Graph

Used inside

No schema contains this one.

Used by

Sent by 0 operations

No operation takes it as a request body.

Returned by 1 operation