Json with REST API

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: scriptler-plugin
    • None
    • Environment:
      Scriptler version 2.9

      It seemsĀ  that is not possible to return the result of a scriptler script as Json.

      Then content is always returned as plain text.

      const url = `${this.jenkinsUrl}scriptler/run/${scriptId}`
      const result = await axios.get(url, { 
      params: { contentType: 'application/json', }, 
      headers: {Accept: 'application/json'}, 
      })
      

            Assignee:
            Michael Tughan
            Reporter:
            adrien
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: