Skip to content

docs(checkout): add missing Discovery section to REST binding#509

Open
Mubeen-Fatima wants to merge 1 commit into
Universal-Commerce-Protocol:mainfrom
Mubeen-Fatima:docs/checkout-rest-discovery-section
Open

docs(checkout): add missing Discovery section to REST binding#509
Mubeen-Fatima wants to merge 1 commit into
Universal-Commerce-Protocol:mainfrom
Mubeen-Fatima:docs/checkout-rest-discovery-section

Conversation

@Mubeen-Fatima

Copy link
Copy Markdown
Contributor

Summary

Adds the missing ### Discovery section to docs/specification/checkout-rest.md. Every other REST-binding spec page documents how the capability is advertised via the business's UCP profile at /.well-known/ucp — checkout was the only one without it.

Why

cart-rest.md and order-rest.md both include a Discovery section between ## Protocol Fundamentals and ### Base URL, with a sample UCP profile showing the relevant service + capability declaration. checkout-rest.md skips straight from Protocol Fundamentals to Base URL, leaving readers without a worked example for the checkout capability — even though checkout is the canonical purchase-finalization flow.

What changed

  • docs/specification/checkout-rest.md: +35 lines, insertion-only. New ### Discovery subsection placed in the same slot as in the sibling REST docs, with a dev.ucp.shopping.checkout capability declaration and the same <!-- ucp:example schema=profile def=business_schema --> annotation used by cart-rest.md / order-rest.md.
  • Uses {{ ucp_version }} macro (per docs: fix broken links and add dynamic versioning #226) rather than hard-coded versions.

Reference

Test plan

  • Section renders correctly in mkdocs preview
  • {{ ucp_version }} macro substitutes to the right value on draft + release branches
  • No anchors changed (#authentication, #base-url etc. still resolve — verified order.md link to checkout-rest.md#authentication is unaffected)

The REST binding doc was missing the Discovery subsection under
Protocol Fundamentals that both cart-rest.md and order-rest.md include.
Add the same section, scoped to declaring the checkout capability only.

The inserted block mirrors the structure used in the sibling docs:
short paragraph explaining how businesses advertise REST transport
availability via /.well-known/ucp, followed by a profile JSON example
that uses the {{ ucp_version }} macro from Universal-Commerce-Protocol#226.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant