Aggiornare 'README.md'

This commit is contained in:
Marco Lettere 2022-09-30 15:24:26 +02:00
parent 97c784ae9d
commit 3bf3b9e1cb
1 changed files with 69 additions and 1 deletions

View File

@ -1,3 +1,71 @@
# conductor_playground
A playground for experimenting, developing and testing Netflix OSS Conductor based workflows.
A playground for experimenting, developing and testing Netflix OSS Conductor based workflows.
# Useful information
## launch playground
```docker-compose -f stack-playground.yaml up```
## Upload workflow with:
Put mioworkflow.json into workflows dir, then:
```./upload-workflow.sh mioworkflow```
## Delete workflow with:
If 1 is the version to remove and mioworkflow is the name given to the workflow
```./delete-workflow.sh mioworkflow/1```
## Useful links
Conductor REST API:
```http://localhost:8080/api```
Access UI:
```http://localhost:5000/```
Official Site:
```https://conductor.netflix.com/```
## Task documentation
pyrest task inputParameters are configured like this:
```
{
"method" : "POST",
"url" : "http://...."
"headers" : {
"Authorization" : "...",
"Content-Type" : "....",
"Accept" : "...",
...
},
"params" : { // Query string parameters
},
"body" : { //either a map of form-parameters or a JSON structure or a string body
},
"expect" : [200,409], // Default is 20x
"fail" : true|false #if failure should be avoided at all. If set to true the task succeeds independently of the HTTP Status
}
```
pyrest output is as follows:
```
{
"body" : //the response body possibly parsed to JSON if Accept is set to "application/json" or response contains a mime-type indication of "applciation/json"
"headers" : {
// a map containing the response headers
},
"status" : 200,
"readon" : "OK"
}
```