Skip to content
GitmoapAPIBeta
Schema

TemplateSummary

A template, without its content — one entry of a listing.

Shape

  • 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
{
"default_path": "default-path-a016",
"fields": [
{
"label": "label-22f3",
"name": "payments-api"
}
],
"key": "key-0c6e",
"kind": "license",
"name": "payments-api",
"spdx_id": "a5c3667d-b9da-4e01-875e-b6a629761a63",
"summary": "summary-96ed"
}

Graph

Used by

Sent by 0 operations

No operation takes it as a request body.

Returned by 1 operation