Resources Pull Request Get Basic Info
Get Basic Info
Http Method
GET
End Point
/api/pull-requests/{requestId}
Placeholder Description Example
{requestId} Request Id 1
Response
Operation Successful
Status Code
200
Response Body
Content Type
application/json
Example
{
"id" : 1 ,
"title" : "string" ,
"status" : "OPEN" ,
"description" : "string" ,
"submitterId" : 1 ,
"numberScopeId" : 1 ,
"targetProjectId" : 1 ,
"targetBranch" : "string" ,
"sourceProjectId" : 1 ,
"sourceBranch" : "string" ,
"baseCommitHash" : "string" ,
"submitDate" : "2022-06-29T13:55:56.809+00:00" ,
"mergeStrategy" : "CREATE_MERGE_COMMIT" ,
"uuid" : "string" ,
"number" : 1 ,
"commentCount" : 1 ,
"lastUpdate" : {
"userId" : 1 ,
"date" : "2022-06-29T13:55:56.810+00:00" ,
"activity" : "string"
}
,
"codeCommentsUpdateDate" : "2022-06-29T13:55:56.810+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> https://code.onedev.io/api/pull-requests/1
Please wait...
Page is in error, reload to recover