Skip to main content

API

The plug-in's API endpoint is published at /wp-json/continuous-delivery/v1.

Authentication and Authorization

The plug-in uses WordPress' natives method for authentication and authorization. Read

Methods

POST /v1/products/:product_id/release

Fields

FieldTypeRequiredDescription
artifact_urlstringYesURL to your previously uploaded file in S3
sizeintNoFile size as the plug-in does not resolve the file's size
directorystringNoA path to the file
mime_typestringNoMIME type
architecturestringNoArchitecture
osstringNoOperating System
releaseobjectYesRelease information
release.versionstringYesVersion
release.datestringNoRelease date
release.trainstringNoRelease train
release.is_security_relatedboolNoFlag, that the release has been created due to security issues
release.has_breaking_changesboolNoFlag, that the release has breaking changes
release.titleobject:contentNoTitle
release.descriptionobject:contentNoDescription
release.changelogobject:contentNoChangelog
buildobjectNoBuild information
build.datestringNoDate of build
build.numberstringNoBuild number
scmobjectNoBuild information
scm.revisionstringNoRevision, e.g. Git commit hash
scm.tagstringNoTag
signaturesmap<string:algorithm,string:hash>NoMapping of file hashes. For Easy Digital Downloads, crc32, sha1, sha256, md5 will be mapped.
metamap<any:any>NoAnything you want to additionally map

object:content

FieldTypeRequiredDescription
typeenum { text, html, markdown }NoType of confent
transmap<string:language_key,string:content>NoMapping of language key to content

Sample

{
"artifact_url": "s3|https|http://...",
"size": 555,
"filename": "custom_filename.zip",
"release": {
"version": "1.0.0"
}
}