Repository navigation
Closed
Labels
Description
Phase 10 Task
Task ID: C1
Title: Correct Stale Public CSAPI Usage
Source: Approved Phase 10 Roadmap
Roadmap: P10-ROADMAP.md
- Objective: Make every current public CSAPI example describe the real endpoint facade, method spelling, advanced factory signature, and supported package subpath.
- Acceptance criteria advanced: P10-C1, P10-C2, P10-C3.
- Complexity/risk: Medium; authored public documentation with no behavior change.
- Locked decisions: Preferred usage is
endpoint.csapi(collectionId); advanced factory iscreateCSAPIBuilder(collection, resourceUrls); method isgetDatastreams(); no nested SensorML package export. - Expected work:
- preserve current upstream README additions while correcting its CSAPI section;
- correct stale examples and comments in the known endpoint and CSAPI files;
- replace invalid
@camptocamp/ogc-client/csapi/formats/sensormlpublic imports with symbols actually exported by/csapi; - distinguish the preferred facade from the advanced factory without redesigning either;
- search all current public README/source examples for obsolete usage;
- format, typecheck, and run affected tests.
- Affected areas:
README.md,src/ogc-api/endpoint.ts,src/ogc-api/csapi/index.ts,src/ogc-api/csapi/url_builder.ts, and relevant SensorML public documentation comments. - Explicit exclusions: Dynamic-import changes, new package exports, root bulk exports, parser behavior changes, historical docs, server testing.
- Automated acceptance gate:
- obsolete-use search over
README.mdandsrc/returns zero matches; - positive-use search finds
endpoint.csapi(...),getDatastreams(...), and the public/csapiimport where appropriate; npm run format:check,npm run typecheck, and affected existing tests exit 0;- reviewed diff contains documentation-only authored changes beyond prior formatter output.
- obsolete-use search over
- Deliverable: One pushed public-documentation correction commit.
- Closing evidence: Commit SHA, negative and positive search output, gates, files, deviations or
none.
Acceptance Criteria
- The task objective and expected work are complete under the locked decisions.
- Every condition in the automated acceptance gate above passes and its command output is recorded.
- The actual changed-file or evidence set stays within the listed affected areas.
- Every explicit exclusion is respected.
- Required workbench changes and evidence are committed and pushed to phase-10, or the task's stated evidence-only result is linked to an immutable commit.
- The closing comment records the commit SHA or verified immutable SHA, changed files, exact gate results, and Deviation from locked decision: none. or the approved deviation.
Dependencies
Blocked by: #193 — Phase 10 Task B2
Blocks: #195 — Phase 10 Task D1
Definition of Done / Closing Workflow
This issue is not complete until all three steps occur in order:
- Edit this issue so every acceptance checkbox is [x].
- Commit and push/sync all required changes or immutable evidence.
- Post the required summary comment and close the issue as completed.
Do not close without the summary comment. New findings are recorded separately and are not absorbed into this task.
Operational Constraints
Before starting, review AI_OPERATIONAL_CONSTRAINTS.md and use its required task-entry acknowledgment.
Authority order for this issue:
- Adopted standards and specifications.
- Project governance.
- P10 Contribution Goal and Definition.
- P10 Implementation Guide.
- P10 Roadmap.
- This issue.
- Existing repository code and documentation.
- Conversational context.
Preserve minimal diffs, do not refactor adjacent code, do not introduce new features or dependencies, and stop on unresolved scope or architectural conflict.
Activity
docs(csapi): correct public usage examples (#194)
Sam-Bolling commentedon Aug 27, 2026
Completed Phase 10 Task C1.
a29bd9c74f9d2e91cbdac632f69ab069c0f58373README.md,src/ogc-api/endpoint.ts,src/ogc-api/csapi/index.ts,src/ogc-api/csapi/url_builder.ts,src/ogc-api/csapi/formats/sensorml/index.ts,src/ogc-api/csapi/formats/sensorml/parser.tsREADME.mdandsrc/: zero matches forcreateCSAPIBuilder(endpoint,getDataStreams, the unsupported nested SensorML package path, orawait new OgcApiEndpoint.endpoint.csapi(...)facade,getDatastreams(...), and supported@camptocamp/ogc-client/csapiimports in current public examples.git diff --checkpassed.npm run typecheck: passed.npm run lint: passed.format:check,typecheck,lint, browser tests, and Node tests.