Resources Pull Request Query Basic Info
🤬
Query Basic Info
Http Method
GET
End Point
/~api/pulls
Query Parameters
Parameter Description Required Example
query Syntax of this query is the same as query box in pull requests page No "Number" is "projectName#100"
offset Offset Yes 0
count Count Yes 100
Response
Operation Successful
Status Code
200
Response Body
Content Type
application/json
Example
[ {
"id" : 1 ,
"title" : "string" ,
"description" : "string" ,
"sourceProjectId" : 1 ,
"status" : "OPEN" ,
"submitterId" : 1 ,
"numberScopeId" : 1 ,
"targetProjectId" : 1 ,
"targetBranch" : "string" ,
"sourceBranch" : "string" ,
"baseCommitHash" : "string" ,
"buildCommitHash" : "string" ,
"submitDate" : "2024-03-29T09:54:58.591+00:00" ,
"mergeStrategy" : "CREATE_MERGE_COMMIT" ,
"uuid" : "string" ,
"number" : 1 ,
"commentCount" : 1 ,
"lastActivity" : {
"userId" : 1 ,
"date" : "2024-03-29T09:54:58.592+00:00" ,
"description" : "string"
}
,
"codeCommentsUpdateDate" : "2024-03-29T09:54:58.592+00:00" ,
"checkError" : "string"
}
]
Operation Failed
Status code
Status code other than 200 indicating the error type
Response Body
Error detail of content type "text/plain"
cURL Example
$ curl -u <login name>:<password or access token> -G https://crash.software/~api/pulls --data-urlencode 'query="Number" is "projectName#100"' --data-urlencode offset=0 --data-urlencode count=100
Please wait...
Page is in error, reload to recover