REST API docs: add code snippets for Scala

XMLWordPrintable

      The Bitbucket Cloud REST API documentation has great code examples for Node.JS, Python, and Java. It would be beneficial to have snippets for the Scala programming language, as it's a key player in real-time data relay, used in frameworks like Akka, Play, and Kafka.

      // Fetching a list of all pull requests from a bitbucket project repository
      
      import scalaj.http.{Http, HttpOptions}
      
      val result = Http("<https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pullrequests").param("","").asString>
                   .header("Content-Type","application/json")
                   .header("Authorization","Bearer <token>")
      

            Assignee:
            Unassigned
            Reporter:
            Bartosz Robakowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: