Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update doc for audit broken-backlinks #387

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/openapi/audit-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ update-audit-config-for-site:
summary: Update the configuration for an audit
description: |
This endpoint is useful for updating the configuration for an audit,
for example to set which URLs to skip from the audit.
for example to set which URLs to skip from the audit or manual overwrite broken-backlinks.
operationId: patchAuditForSite
requestBody:
required: true
Expand Down
39 changes: 34 additions & 5 deletions docs/openapi/schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -399,23 +399,52 @@ AuditConfigType:
type: array
items:
type: string
manualOverwrites:
description: Set of urls to exclude. If empty, will remove all manualOverwrites.
type: array
items:
type: object
properties:
brokenTargetURL:
description: The broken backlink URL
type: string
targetURL:
description: The correct target for the broken backlink
type: string
example:
disabled: true
excludedURLs:
- 'https://www.adobe.com/some-page'
- 'https://www.adobe.com/another-page'
- 'https://example-site.com/some-page'
- 'https://example-site.com/another-page'
UpdateAuditConfigType:
type: object
properties:
excludedURLs:
description: Set of urls to exclude. If empty, will remove previously excluded URLs.
description: Set of urls to exclude. If empty, will remove all previously excluded URLs.
type: array
items:
type: string
manualOverwrites:
description: Set of urls to overwrite. If empty, will remove all previously manualOverwrites.
type: array
items:
type: object
properties:
brokenTargetURL:
description: url of the broken backlink
type: string
targetURL:
description: url of the correct target
type: string
example:
excludedURLs:
- 'https://www.adobe.com/some-page'
- 'https://www.adobe.com/another-page'
- 'https://example-site.com/some-page'
- 'https://example-site.com/another-page'
manualOverwrites:
- brokenTargetURL: 'https://example-site.com/broken-link'
targetURL: 'https://example-site.com/correct-link'
- brokenTargetURL: 'https://example-site.com/another-broken-link'
targetURL: 'https://example-site.com/another-correct-link'
AuditConfig:
type: object
properties:
Expand Down
Loading