Builder
Get template
GET

/api/v1/template/{language}

language*
curl --request GET \
  --url https://api.suborbital.network/api/v1/template/{language}
{
  "contents": " ```rust\n import { logInfo } from \"@suborbital/suborbital\"\n\n export function run(input: ArrayBuffer): ArrayBuffer {\n   let inStr = String.UTF8.decode(input)\n\n   let out = \"Hello there, \" + inStr\n\n   return String.UTF8.encode(out)\n }\n ```\n",
  "lang": "rust",
  "tests": [
    {
      "description": "string",
      "name": "string",
      "payload": "string"
    }
  ]
}

Path Parameters

languagerequired
string

The language toolchain used to configure the builder

Query Parameters

namespace
string

Response

contentsrequired
string

The source code of a plugin

langrequired
string

The language of a plugin

tests
array

An array of tests