Template Registry API (0.10.0)

Download OpenAPI specification:Download

templates

Add a template to Template Registry for a further verification.

Authorizations:
createAndUpdateTemplateAuth
Request Body schema: application/json
required
name
required
string

The name of the template on npmjs.com

author
string

The name of the template's author on npmjs.com

createdBy
string

The name of the user who created the template

updatedBy
string

The name of the user who last updated the template

description
string

A description of the template

adobeRecommended
boolean

Whether the template is recommended by Adobe

latestVersion
string

The version of the template in the semver format

publishDate
string

The date the template was published in the ISO 8601 format

Array of objects non-empty

Extension points that a template implements

categories
Array of strings non-empty

A list of categories the template belongs to

Array of objects non-empty

A list of Adobe APIs required by the template

Array of objects non-empty

A list of credentials required by the template

runtime
boolean
Default: false

Whether to add Runtime to App Builder application or not.

event
object

event configuration for the template

keywords
Array of strings

A list of keywords specified in the packages.json file

status
string
Enum: "InVerification" "Approved" "Rejected" "Error"

A status of a package in Template Registry. "Error" indicates that an application error occurred.

Array of objects (CodeSamples)

A list of code samples for the template

requestAccessAppId
string

Access Platform app id which can be used to request access to services in this template.

isRequestPending
boolean

Indicates whether a request for access is already pending for the user in a given org

required
object non-empty

A list of locations where the package's code can be found

orgEntitled
boolean

Whether the organization is entitled to use the template

userEntitled
boolean

Whether the user is entitled to use the template

canRequestAccess
boolean

Whether the user can request access to the template

disEntitledReasons
Array of strings

A list of reasons why the user is not entitled to use the template

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{}

Return a list of templates matching a specified criteria.

query Parameters
names
string

Filter by template names. A comma-delimited list of template names (npm package names).

categories
string

Filter by template categories. A comma-delimited list of template categories.

apis
string

Filter by template APIs. A comma-delimited list of template APIs.

extensions
string

Filter by template extension points. A comma-delimited list of template extension points.

events
string

Filter by template events. It supports "empty" (?events=) and "any" (?events=) filters for now. The "empty" filter (?events=) returns templates that do not have the "event" property set. The "any" (?events=) filter returns templates that do have the "event" property set.

runtime
string
Enum: "true" "false" "*"

Is Runtime required or not.

statuses
string

Filter by template statuses.

adobeRecommended
boolean

Indicates templates featured by Adobe.

size
integer
Default: 10
Enum: 10 25 50

A number of items to return.

cursor
string

We'll use a forward-only cursor-based pagination (also known as an infinite scrolling). A value is a BASE64 encoded encrypted string.

orderBy
string

A query parameter used for sorting. The value of the orderBy parameter contains a comma-separated list of expressions used to sort the items. The expression MAY include the suffix "asc" for ascending or "desc" for descending, separated from the property name by a space. If "asc" or "desc" is not specified, the service MUST order by the specified property in ascending order. Sub-sorts can be specified by a comma-separated list of property names with an OPTIONAL direction qualifier.

Responses

Response samples

Content type
application/json
{}

Modify a template to Template Registry.

Authorizations:
createAndUpdateTemplateAuth
path Parameters
templateId
required
string

The id of the template in the database

Request Body schema: application/json
required

Template object to update

updatedBy
required
string

The name of the user who created the template

description
string

A description of the template

latestVersion
string

The version of the template in the semver format

categories
Array of strings non-empty

A list of categories the template belongs to

adobeRecommended
boolean

Whether the template is recommended by Adobe

keywords
Array of strings

A list of keywords specified in the packages.json file

status
string
Enum: "InVerification" "Approved" "Rejected" "Error"

A status of a package in Template Registry. "Error" indicates that an application error occurred.

Array of objects non-empty

Extension points that a template implements

runtime
boolean
Default: false

Whether to add Runtime to App Builder application or not.

Array of objects non-empty

A list of credentials required by the template

Array of objects (CodeSamples)

A list of code samples for the template

requestAccessAppId
string

Access Platform app id which can be used to request access to services in this template.

Array of objects non-empty

A list of Adobe APIs required by the template

object

A link to the Github repository containing the package's source code

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{}

Get information about a template.

path Parameters
templateId
required
string

The id of the template in the database

Responses

Response samples

Content type
application/json
{}

Delete a template from Template Registry.

Authorizations:
deleteTemplateAuth
path Parameters
templateId
required
string

The id of the template in the database

Responses

Response samples

Content type
No sample

Install a template

Authorizations:
bearerAuth
path Parameters
templateId
required
string

The id of the template in the database

Request Body schema: application/json
required
orgId
required
string

AMS org id

projectName
required
string

Project name

description
string

Project description

required
object

Key value pairs of credential metadata like allowed domains, redirect uris etc

Array of objects

Optional field to include license configs to be assigned to a technical account for an individual API

Responses

Request samples

Content type
application/json
{
  • "orgId": "string",
  • "projectName": "string",
  • "description": "string",
  • "metadata": {
    },
  • "apis": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "apiKey": "string",
  • "orgId": "string",
  • "technicalAccountId": "string",
  • "projectId": "string",
  • "workspaceId": "string",
  • "subscriptionResult": {
    }
}

Get information about a template by organization.

path Parameters
templateName
required
string

The name of the template on npmjs.com

orgName
required
string

Organisation name on npmjs.com

Responses

Response samples

Content type
application/json
{}

Delete a template from Template Registry by organization.

Authorizations:
deleteTemplateAuth
path Parameters
templateName
required
string

The name of the template on npmjs.com

orgName
required
string

Organisation name on npmjs.com

Responses

Response samples

Content type
No sample