Hydrospheredata / mist-cli

Mist command line interface
Apache License 2.0
2 stars 4 forks source link

After applying job deployment return cURL example of deployed config #3

Closed blvp closed 7 years ago

blvp commented 7 years ago

After deployment print cURL command of how you can access deployed entries. For example:

model = Endpoint
name = test-job
version = 0.0.1
data {
    class-name = SimpleContext
    path = test-job
    context = foo 
}

Output of deployed config will be


# get info about endpoint
curl -X GET host:port/v2/api/endpoints/test-job_0_0_1```
# start job command
mist-cli start job test-job_0_0_1 '{"numbers": [1,2,3], "multiplier": 4}'
# start job with cURL
curl --data '{"numbers": [1,2,3], "multiplier": 4}' -X POST host:port/v2/api/endpoints/test-job_0_0_1