Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-8926

[fiware-stackoverflow] How to add a custom header in outgoing notifications with Orion?

    Details

      Description

      Created question in FIWARE Q/A platform on 13-12-2016 at 20:12
      Please, ANSWER this question AT https://stackoverflow.com/questions/41128616/how-to-add-a-custom-header-in-outgoing-notifications-with-orion

      Question:
      How to add a custom header in outgoing notifications with Orion?

      Description:
      I read the "Custom notifications" section in the NGSIv2 specification and I still have doubts in how to make this work.

      Do I have to put in my subscribe POST the following code as a payload?

      "httpCustom": {
      "url": "http://foo.com/entity/$

      {id}

      ",
      "headers":

      { "Content-Type": "text/plain" }

      ,
      "method": "PUT",
      "qs": {
      "type": "$

      {type}

      "
      },
      "payload": "The temperature is $

      {temperature}

      degrees"
      }

      How would be a complete payload with a httpCustom for a subscribe with Authentication/Authorization?

      Lastly, is really necessary to use Rush, as stated at Rush Relayer? In this case, we have to use a "third-party" software that was updated almost 3 years ago. Why not Orion provides this? I would appreciate some help regarding this too.

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 15:12|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 15:12|CREATED monitor | # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 18:08|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 18:08|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 21:08|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 21:08|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

          • Assignee:
            backlogmanager Backlog Manager
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: