GET
/
api
/
v2
/
template
/
{language}
/
{pluginName}
curl --request GET \
  --url http://local.suborbital.network/:{port}/api/v2/template/{language}/{pluginName}
{
  "lang": "rust",
  "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",
  "tests": [
    {
      "name": "<string>",
      "description": "<string>",
      "payload": "<string>"
    }
  ]
}

Path Parameters

language
string
required

The language toolchain used to configure the builder

pluginName
string
required

The plugin name (user-defined)

Query Parameters

namespace
string

Response

200 - application/json
lang
string
required

The language of a plugin

contents
string
required

The source code of a plugin

tests
object[]

An array of tests