docs(api): approve merchant API contract
This commit is contained in:
@@ -29,4 +29,4 @@ The exact package layout is deferred until the Go architecture and DI decisions
|
|||||||
## Merchant API contract
|
## Merchant API contract
|
||||||
|
|
||||||
- [`docs/API-SPEC.md`](docs/API-SPEC.md) defines the reviewable MVP capability, security boundaries, SSE recovery, detail pagination, and CSV-export policy.
|
- [`docs/API-SPEC.md`](docs/API-SPEC.md) defines the reviewable MVP capability, security boundaries, SSE recovery, detail pagination, and CSV-export policy.
|
||||||
- [`docs/openapi.yaml`](docs/openapi.yaml) is the draft OpenAPI 3.1 interface source of truth and will generate frontend types after approval.
|
- [`docs/openapi.yaml`](docs/openapi.yaml) is the approved OpenAPI 3.1 interface source of truth for generated frontend types.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Merchant Analytics API Capability Spec
|
# Merchant Analytics API Capability Spec
|
||||||
|
|
||||||
- Status: Draft for review — implementation not yet authorized
|
- Status: Approved specification — implementation not yet authorized
|
||||||
- Capability: Merchant API
|
- Capability: Merchant API
|
||||||
- Depends on: Approved Identity, Data Foundation, and Analytics Engine specifications
|
- Depends on: Approved Identity, Data Foundation, and Analytics Engine specifications
|
||||||
- Interface source of truth: `docs/openapi.yaml`
|
- Interface source of truth: `docs/openapi.yaml`
|
||||||
@@ -282,7 +282,7 @@ Correlate `requestId`, authenticated user/merchant internal ids, run id, section
|
|||||||
|
|
||||||
## Remaining product questions
|
## Remaining product questions
|
||||||
|
|
||||||
None. Final approval of this complete capability spec and its OpenAPI contract remains the SDD gate before implementation planning.
|
None.
|
||||||
|
|
||||||
## Standards references
|
## Standards references
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
openapi: 3.1.0
|
openapi: 3.1.0
|
||||||
info:
|
info:
|
||||||
title: ZarinPal Merchant Analytics API
|
title: ZarinPal Merchant Analytics API
|
||||||
version: 0.1.0-draft
|
version: 1.0.0
|
||||||
summary: Contract-first API for authenticated merchant analytics.
|
summary: Contract-first API for authenticated merchant analytics.
|
||||||
description: |
|
description: |
|
||||||
Draft MVP interface. This document is the API source of truth; generated
|
Approved MVP interface. This document is the API source of truth; generated
|
||||||
frontend types must come from this contract after approval.
|
frontend types must come from this contract.
|
||||||
|
|
||||||
Merchant scope is always derived from the authenticated server-side session.
|
Merchant scope is always derived from the authenticated server-side session.
|
||||||
No operation accepts a merchant identifier as authorization. All timestamps
|
No operation accepts a merchant identifier as authorization. All timestamps
|
||||||
|
|||||||
Reference in New Issue
Block a user