Repositories

Read compared file patches

Returns hunks for up to 64 listed paths of a comparison pinned to the exact base and head commit OIDs a compare page returned (Clients should use QUERY instead). Public repositories allow anonymous reads; supplied credentials are validated and may expand access to private resources.

post/api/repos/{owner}/{repo}/compare/files

Request

  • Base URL
    https://git.cafe
  • Auth
    • none
    • or API key in cookie gc-session
    • or HTTP bearer
    • or HTTP basic
    • or HTTP token
    • or OAuth 2
      Authorization code: /api/oauth/authorize
      Token URL: /api/oauth/token scopes: repo:contents:read

Path parameters

ownerstring required
repostring required

Request body

basestring required
baseOidstring required
headstring required
headOidstring required
pathsstring[] required

Response

Response for status 200

basestring required
headstring required

Changes

No recorded changes to this operation across all 1 revision of this API.