Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Check your current additional headers 
    Status
    subtletrue
    colourGreen
    titleGET
     

    URI: /rest/synchronizer/1.0/headers/get/{connectionName}
    Headers: you need to include JIRA authorization header and IssueSYNC's connection local key header
    Responses:

    Status
    colourGreen
    titleStatus: 200

    Code Block
    languagetext
    {status:"OK",
     headers:{
    	X-Header-Jira:"token-A",
        X-Header-Authorize:"token-B",
        My-Server-Secret-Token:"token-C"
    	}
    }

    Status
    colourYellow
    titleStatus: 401

    Code Block
    languagetext
    {"Description for given status does not exist"}


  2. Set headers 

    Status
    subtletrue
    colourYellow
    titlePUT
     /rest/synchronizer/1.0/headers/create

    URI: /rest/synchronizer/1.0/headers/create
    Headers: you need to include JIRA authorization header and IssueSYNC's connection local key header
    Request body example:

    Code Block
    languagetext
    {connectionName:"{connectionName}",
     customHeaders:{
    	X-Header-Jira:"token1",
    	X-Header-Authorize:"token2",
    	My-Server-Secret-Token:"token3"
    }
    }
    
    

    Responses:

    Status
    colourGreen
    titleStatus: 201

    Code Block
    languagetext
    {"Headers created or replaced properly."}

    *Please bare bear in mind putting new headers will remove old ones.


      

  3. Delete headers 

    Status
    subtletrue
    colourRed
    titleDELETE
     /rest/synchronizer/1.0/headers/delete/{connectionName}

    URI: rest/synchronizer/1.0/headers/delete/{connectionName}
    Headers: you need to include JIRA authorization header and IssueSYNC's connection local key header
    Responses:
    Status
    colourGreen
    titleStatus: 200

    Code Block
    languagetext
    {"Operation processed properly."}