Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-67627

REST API baseUrl put operation should use valid JSON payload

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • REST API
    • None
    • 0
    • 1
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      Problem Definition

      According to REST API /rest/api/2/settings/baseUrl docs ( see settings-setBaseURL)

      • Jira expects "application/json" content type for the request:

        The JIRA REST API uses JSON as its communication format ..

      • and the example shows that simple string should be used as a payload:
        EXAMPLE
        http://jira.atlassian.com/
        

      However, according to JSON specification strings should be quoted, which makes the payload invalid JSON.

      Suggested Solution

      Change the API so that settings/baseUrl operation used JSON as a payload and update docs accordingly.

      Workaround

      Use unquoted string as a payload as documented.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ayakovlev@atlassian.com Andriy Yakovlev [Atlassian]
            Votes:
            8 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: