Retrieves pull requests that belong to the given repository
1 min
code examples curl request get \\ \ url https //api waydev co/v2/repositories/{repository id}/pulls \\ \ header 'accept application/json' \\ \ header 'authorization string'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); myheaders append("authorization", "string"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //api waydev co/v2/repositories/{repository id}/pulls", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api waydev co/v2/repositories/{repository id}/pulls") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request\["authorization"] = "string" response = https request(request) puts response read body import requests import json url = "https //api waydev co/v2/repositories/{repository id}/pulls" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json', 'authorization' 'string' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // successful operation { "count" 1, "values" \[ { "id" 1321, "title" "v1 setup", "body" "body of the pr", "state" "merged", "uuid" "36", "created date" "2022 04 06 12 45 13", "merged date" "2022 04 06 14 45 13", "closed date" "2022 04 06 16 45 13" } ] }// bad input parameter