Versions Compared

Key

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

...

Code Block
PUT /namespaces/default/apps/myapp3 -H "X-Archive-Name: Content-Type: application/json" -d '{ "artifact": "myapp-1.0.1.jar", -H "Content-Type: application/json" -d '{ "config": {"stream": "C", "table": "X"} }'

 

 

Users will also be able to update their applications to use a different version of an artifact.

Code Block
PUT /namespaces/default/apps/myapp/properties -H "X-Archive-Name: myapp-1.0.1.jar" -H "Content-Type: application/json" -d '{ "stream": "A", "table": "X" }'

 

RESTful API changes

Application APIs

TypePathBodyHeadersDescription
GET/v3/namespaces/<namespace-id>/apps?label=<label>   for example, to get all "ETLBatch" applications
PUT/v3/namespaces/<namespace-id>/apps/<app-name>{ 'artifact': 'name-version', 'config': { ... } }Content-Type: application/json 
PUT/v3/namespaces/<namespace-id>/apps/<app-name>/properties{ 'artifact': 'name-version', 'config': { ... } }  
     

Artifact APIs

TypePathDescription
GET/v3/namespaces/<namespace-id>/artifacts 
GET/v3/namespaces/<namespace-id>/artifacts/<artifact-name> 
GET/v3/namespaces/ 

Template APIs (will be removed)

TypePathReplaced By
GET/v3/templates 
GET/v3/templates/<template-name> 
GET/v3/templates/<template-name>/extensions/<plugin-type>/v3/namespaces/<namespace-id>/plugins?type=<plugin-type>
GET/v3/templates/<template-name>/extensions/<plugin-type>/plugins/<plugin-name>/v3/namespaces/<namespace-id>/plugins/<plugin-name>
PUT/v3/namespaces/<namespace-id>/templates/<template-id> 
GET/v3/namespaces/<namespace-id>/adapters 
GET/v3/namespaces/<namespace-id>/adapters/<adapter-name> 
POST/v3/namespaces/<namespace-id>/adapters/<adapter-name>/start 
POST/v3/namespaces/<namespace-id>/adapters/<adapter-name>/stop 
GET/v3/namespaces/<namespace-id>/adapters/<adapter-name>/status 
GET/v3/namespaces/<namespace-id>/adapters/<adapter-name>/runs 
GET/v3/namespaces/<namespace-id>/adapters/<adapter-name>/runs/<run-id> 
DELETE/v3/namespaces/<namespace-id>/adapters/<adapter-name>