Technology template

Create a technology template

Create a technology template that serves as a starter or skeleton for new applications.

post/template

Request body

namestring required

The name of the technology template (e.g., node, java-spring, go, kotlin-ktor).

urlstring required

The URL of the template in the repository.

organizationinteger required

The ID of the organization.

accountinteger

The ID of account.

status'active' | 'inactive' required

The status of the template.

tagsstring[] required

Tags associated with the template (e.g., node, nextjs, frontend)

rulesobject

Defines rules for enforcing naming conventions and structuring repository paths.

Example request

{
  "name": "Next.JS 13",
  "organization": 234,
  "account": 345,
  "status": "active",
  "url": "https://github.com/nullplatform/technology-templates-nextjs",
  "provider": {
    "repository": "technology-templates-nextjs"
  },
  "components": [
    {
      "type": "language",
      "id": "javascript",
      "version": "es6"
    },
    {
      "type": "framework",
      "id": "next.js",
      "version": "13"
    }
  ],
  "rules": {
    "application_name": "^(.*)-api$",
    "repository_path": "s/^(.*)-(.*)$/${namespace.slug}-golang-${1}-${2}/g"
  },
  "tags": [
    "javascript",
    "frontend",
    "nextjs"
  ]
}

Response

Technology template created successfully.

idinteger

The ID of the template.

namestring

The name of the technology template (e.g., node, java-spring, go, kotlin-ktor).

urlstring

The URL of the template in the repository.

tagsstring[]

Tags associated with the template (e.g., node, nextjs, frontend).

updated_atstring date-time nullable

The ISO-8601 UTC timestamp of when the technology template was last updated.

created_atstring date-time

The ISO-8601 UTC timestamp of when the technology template was created.

Example response

{
  "id": 123,
  "name": "Next.JS 13 template",
  "url": "https://github.com/nullplatform/technology-templates-nextjs",
  "provider": {
    "repository": "technology-templates-nextjs"
  },
  "components": [
    {
      "type": "language",
      "id": "javascript-language",
      "version": "1.0"
    }
  ],
  "updated_at": "2021-01-02T00:00:00Z",
  "created_at": "2021-01-02T00:00:00Z"
}

Changes