Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-22366

REST API docs: add code snippets for Scala

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      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>")
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              e555ca5e1233 Bartosz Robakowski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: