Diff one source file
Returns a bounded unified diff for one file name between two version refs, defaulting from published to head.
Authorizations
Cactal API key. Create one in the dashboard or via POST /apiKeys. The plaintext key is shown once at creation.
Query Parameters
1Base side of the diff: a version number, head, or published. Defaults to published.
^(head|published|[1-9][0-9]*)$Target side of the diff: a version number, head, or published. Defaults to head.
^(head|published|[1-9][0-9]*)$File name to compare.
1Response
The selected file comparison and unified diff.
Id of the website.
Compared file name.
Resolved base version.
Resolved target version.
How the file differs between the two versions.
added, removed, modified, unchanged Unified diff hunks.
File type at the base version, when present.
page, component, module, global_css, not_found, website_config, custom_head_start, custom_head_end, custom_body_start, custom_body_end File type at the target version, when present.
page, component, module, global_css, not_found, website_config, custom_head_start, custom_head_end, custom_body_start, custom_body_end true when diff computation or output reached its bound. Read both versions for the full content.