Builder
Get draft
GET

/api/v1/draft/{environment}.{userID}/{namespace}/{pluginName}

environment*
userID*
namespace*
pluginName*
curl --request GET \
  --url https://api.suborbital.network/api/v1/draft/{environment}.{userID}/{namespace}/{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"
    }
  ]
}

Authorizations

Authorization[header]required
string

Builder API requests require a Bearer header with an editor token. Obtain an editor token from the Adminstrative API.

Path Parameters

environmentrequired
string

The root compute environment (i.e. the vendor)

userIDrequired
string

The vendor's user

namespacerequired
string

The plugin namespace (vendor-defined groups of plugins)

pluginNamerequired
string

The plugin name (user-defined)

Response

contentsrequired
string

The source code of a plugin

langrequired
string

The language of a plugin

tests
array

An array of tests