Skip to content

Need sample workflow definition for HTTP POST Request (which has request payload as json data) #175

Closed Answered by JBBianchi
karthanvijay asked this question in Q&A
Discussion options

You must be logged in to vote

If you want to use the workflow's input as argument for a POST, you can use body. Here is a petstore sample:

{
   "expressionLang":"jq",
   "functions":[
      {
         "name":"AddPetFn",
         "operation":"https://petstore.swagger.io/v2/swagger.json/#addPet",
         "type":"rest"
      }
   ],
   "id":"addpet",
   "name":"Add Pet",
   "version":"1.0.0",
   "specVersion":"0.8",
   "keepActive":false,
   "states":[
      {
         "name":"AddPet",
         "end":true,
         "type":"operation",
         "actions":[
            {
               "name":"addpetaction",
               "functionRef":{
                  "refName":"AddPetFn",
                  "arguments":{
            …

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@karthanvijay
Comment options

@cdavernas
Comment options

@karthanvijay
Comment options

Answer selected by cdavernas
Comment options

You must be logged in to vote
5 replies
@karthanvijay
Comment options

@cdavernas
Comment options

@karthanvijay
Comment options

@cdavernas
Comment options

@karthanvijay
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants