mirror of
https://github.com/zjdyzww/harness.git
synced 2026-09-28 14:24:00 +08:00
* better parsing of query param ignore_whitespace * replace hideWhitespace with ignoreWhitespace * replace rest client literals with vars * added openapi * add ignore whitespace for diff
28 lines
955 B
HTTP
28 lines
955 B
HTTP
GET {{baseurl}}/repos/root/{{repo}}/+/diff/{{targetBranch}}...{{sourceBranch}}
|
|
Accept: text/plain
|
|
Authorization: {{token}}
|
|
|
|
### Get diff ignore white space
|
|
GET {{baseurl}}/repos/root/{{repo}}/+/diff/{{targetBranch}}...{{sourceBranch}}?ignore_whitespace=true
|
|
Accept: text/plain
|
|
Authorization: {{token}}
|
|
|
|
### Get diff with hidden white spaces
|
|
GET {{baseurl}}/repos/root/{{repo}}/+/commits/{{commit}}/diff
|
|
Accept: text/plain
|
|
Authorization: {{token}}
|
|
|
|
### Get commit diff ignore white space
|
|
GET {{baseurl}}/repos/root/{{repo}}/+/commits/{{commit}}/diff?ignore_whitespace=true
|
|
Accept: text/plain
|
|
Authorization: {{token}}
|
|
|
|
### Get diff stats
|
|
GET {{baseurl}}/repos/root/{{repo}}/+/diff-stats/{{targetBranch}}...{{sourceBranch}}
|
|
Accept: text/plain
|
|
Authorization: {{token}}
|
|
|
|
### Get diff stats ignore white space
|
|
GET {{baseurl}}/repos/root/{{repo}}/+/diff-stats/{{targetBranch}}...{{sourceBranch}}?ignore_whitespace=true
|
|
Accept: text/plain
|
|
Authorization: {{token}} |