...
Code Block |
---|
PUT /namespaces/default/artifacts/myapp -H "X-Artifact-Name: myapp-/versions/1.0.1.jar" --data-binary @myapp-1.0.1.jar |
...
Code Block |
---|
PUT /namespaces/default/apps/myapp3 -H "Content-Type: application/json" -d '{ "artifact": "myapp-{ "name": "my-app", "version": "1.0.1" }, "config": {"stream": "C", "table": "X"} }' |
...
Code Block |
---|
PUT /namespaces/default/apps/myapp/properties -H "X-Archive-Name: myapp-Content-Type: application/json" -d '{ "artifact": { "name":"myapp", "version":"1.0.1.jar" -H}, "Content-Typeconfig": application/json" -d '{ "stream": "A", "table": "X" } }' |
RESTful API changes
Application APIs
Type | Path | Body | Headers | Description | ||||
---|---|---|---|---|---|---|---|---|
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 | create an application from an existing artifact. Note: Edits existing API, different behavior based on content-type | ||||
PUT | /v3/namespaces/<namespace-id>/apps/<app-name>/properties | { 'artifact': 'name-version', 'config': { ... } } | update an existing application. No programs can be running |
Artifact APIs
Type | Path | Body | Description |
---|---|---|---|
GET | /v3/namespaces/<namespace-id>/artifacts |
Artifact APIs
Type | Path | DescriptionGET | /v3/namespaces/<namespace-id>/artifacts/<artifact-name> | Get data about all artifact versions | |
---|---|---|---|---|---|
GET | /v3/namespaces/<namespace-id>/artifacts/<artifact-name>/versions/<version> | GET | Get details about the artifact, such as what plugins and applications are in the artifact and properties they support | ||
PUT | /v3/namespaces/<namespace-id>/artifacts/<artifact-name>/versions/<version> | jar contents | Add a new artifact | ||
GET | /v3/namespaces/<namespace-id>/extensions |
| |||
GET | /v3/namespaces/<namespace-id>/extensions/<plugin-type> | ||||
GET | /v3/namespaces/<namespace-id>/extensions/<plugin-type>/plugins/<plugin-name> |
Template APIs (will be removed)
Type | Path | Replaced By |
---|---|---|
GET | /v3/templates | |
GET | /v3/templates/<template-name> | |
GET | /v3/templates/<template-name>/extensions/<plugin-type> | /v3/namespaces/<namespace-id>/extensions/plugins?type=<plugin-type> |
GET | /v3/templates/<template-name>/extensions/<plugin-type>/plugins/<plugin-name> | /v3/namespaces/<namespace-id>/extensions/<plugin-type>/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> |