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

FIWARE.Question.Tech.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 http://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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        3d 2h 44m 1 Fermín Galán 16/Dec/16 11:50 PM
        In Progress In Progress Answered Answered
        3s 1 Fermín Galán 16/Dec/16 11:50 PM
        Answered Answered Closed Closed
        1s 1 Fermín Galán 16/Dec/16 11:50 PM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        HD-Enabler Orion [ 10875 ]
        Description
        Created question in FIWARE Q/A platform on 13-12-2016 at 20:12
        {color: red}Please, ANSWER this question AT{color} http://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.
        Created question in FIWARE Q/A platform on 13-12-2016 at 20:12
        {color: red}Please, ANSWER this question AT{color} http://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.
        HD-Chapter Data [ 10838 ]
        backlogmanager Backlog Manager made changes -
        Summary [fiware-stackoverflow] How to add a custom header in outgoing notifications with Orion? FIWARE.Question.Tech.How to add a custom header in outgoing notifications with Orion?.
        HD-Enabler Unknown [ 10910 ]
        HD-Chapter Unknown [ 10845 ]
        HD-Node Unknown [ 10852 ]
        fermin Fermín Galán made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        fermin Fermín Galán made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        fermin Fermín Galán made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        WIGNER Budapest Node Helpdesk made changes -
        Assignee Fermín Galán [ fermin ]
        backlogmanager Backlog Manager made changes -
        HD-Enabler Unknown [ 10910 ]
        HD-Chapter Unknown [ 10845 ]
        HD-Node Unknown [ 10852 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2016-12-13 21:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2016-12-13 21:05|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: