GET
/
api
/
v2
/
template
/
{language}
/
{pluginName}
curl --request GET \
  --url http://local.suborbital.network/:{port}/api/v2/template/{language}/{pluginName}
{
  "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

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
contents
string
required

The source code of a plugin

lang
string
required

The language of a plugin

tests
object[]

An array of tests