Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
GET
<base>/v1/packages.json
<base>/v1/packages/<package-name>/<version>/icon.jpgpng
<base>/v1/packages/<package-name>/<version>/license.txt
<base>/v1/packages/<package-name>/<version>/spec.json
<base>/v1/packages/<package-name>/<version>/spec.json.asc
<base>/v1/packages/<package-name>/<version>/archive.zip
<base>/v1/packages/<package-name>/<version>/archive.zip.asc

...

Code Block
GET /v1/packages/<package-name>/<version>/icon.jpgpng
ex: GET /v1/packages/PurchaseExample/4.0.0/icon.jpgpng
[ icon bytes ]

Get Package License

...

Code Block
{
  "type": "create_artifact" | "create_app" | "create_stream" | "create_dataset" | "load_datapack" | "install_package"
  "arguments": [
    {
      "name": [argument name],
      "value": [argument value],
      "canModify": true | false (defaults to false)
    }
  ]
}

...

namedescriptionrequired?default
nameartifact nameyes 
jarname of jar file in package archive

no (if using externalArchive)

 
externalJarlink to download 3rd party jarnonone
externalArchivelink to download 3rd party archivenonone
externalArchiveSignaturelink to get 3rd party archive signaturenonone
externalArchiveJarpath of the jar file in the external archivenonone
scopeartifact scope (implies API to add system artifacts is added in 4.0)nouser
versionartifact version to pass as Artifact-Version headernonone
configconfig file contains artifact parents, plugins, and propertiesnonone

...

namedescriptionrequired?default
namestream nameyes 
descriptionstream description, results in call to set stream propertiesnoempty
formatstream format as json object, results in call to set stream properties

no

empty
schemastream schema, results in call to set stream propertiesnoempty
ttlstream ttl, results in call to set stream propertiesno

empty

notification.threshold.mbmb threshold for sending notifications, results in call to set stream propertiesno

empty

loadfilesfiles in the package archive to write to the stream. results in a call to write to the stream in batch

noempty

create_dataset

Results in a call to http://docs.cdap.io/cdap/current/en/reference-manual/http-restful-api/dataset.html#creating-a-dataset

namedescriptionrequired?default
namedataset nameyes 
typedataset typeyes 
descriptiondataset descriptionnoempty
propertiesjson map of dataset properties

no

empty

load_datapack

Loads a datapack into some dataset or stream.

namedescriptionrequired?default
namedataset/stream nameyes 
filesfiles to load into the dataset/streamyes 

install_package

Installs another package from the marketplace. May not be implemented for version 1.

namedescriptionrequired?default
namepackage nameyes 
versionpackage versionyes 

...