Skip to content

Add oasislmf api client CLI documentation#48

Merged
sambles merged 4 commits into
mainfrom
feature/api-client-docs
Jun 17, 2026
Merged

Add oasislmf api client CLI documentation#48
sambles merged 4 commits into
mainfrom
feature/api-client-docs

Conversation

@benhayes21

Copy link
Copy Markdown
Contributor

Summary

  • Adds sections/api-client.rst — a new page documenting the oasislmf api CLI subcommand (closes Oasis API Client Documentation #31)
  • Cross-links from OasisLMF-package.rst and adds entry to the main toctree

The page covers:

  • Why to use oasislmf api instead of oasislmf model run for model validation (platform serialisation differences)
  • Prerequisites (running platform instance, OasisEvaluation pointer)
  • All three auth modes (simple JWT / OIDC / M2M) with example credentials JSON
  • All six subcommands: run, generate-oasis-files, generate-losses, list, get, delete
  • Step-by-step testing workflow for a model developer
  • Config file usage

Test plan

  • Run make html in GenerateDocs/ and verify the new page builds without warnings
  • Check the "API Client CLI" page appears in the Sections toctree
  • Verify cross-link from OasisLMF Package page resolves correctly

🤖 Generated with Claude Code

benhayes21 and others added 3 commits June 12, 2026 11:51
Brings all docs in sync with the 2.5.x release series:

- Bump PLAT_VER in update-redoc.py from 2.5.0 → 2.5.4 and regenerate
  all four OpenAPI/settings JSON schemas
- Add 2.5.0–2.5.4 changelogs for OasisLMF and OasisPlatform (replacing
  the stale 1.4.x history and the broken include directive)
- Update Python minimum requirement 3.8 → 3.10
- Document new oasislmf CLI subcommands, utility commands (warmup,
  config, version, admin, test), and API client commands
- Add macOS Apple Silicon installation section and JIT cache warmup guide
- Update ods_tools compatibility table to include 3.2.x/4.0.x/5.0.x
- Rewrite ODS-tools page: add combine and generate commands, update
  convert/check option lists
- Fix OED page: broken/stale links, xlsx → CSV spec (v4.0.0), add
  marine cargo section, fix repo path changes
- container_configuration.rst: update psycopg driver string, add
  API_AUTH_TYPE=disabled, server-internal RUN_MODE, Celery SSL/TLS vars
- distributed_execution.rst: rename ktools_* → kernel_*, remove
  raw_output_locations (removed in 2.5.4)
- Oasis-models.rst: add Dynamic Footprint, PiWind Vulnerability
  Adjustments, PiWind S3, and PiWind Azure model entries

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Per Sam's review comment on PR #47: maintaining inline RST changelogs
is ongoing toil. Replace oasislmf.rst and oasis_platform.rst with
simple link-out pages pointing to GitHub releases, and wire them into
the Releases toctree so they're navigable from the docs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds a new section (sections/api-client.rst) covering the oasislmf api
subcommand — the recommended way for model developers to validate a model
against a worker container before distributing it.

Documents all six subcommands (run, generate-oasis-files, generate-losses,
list, get, delete), all three auth modes (simple/oidc/m2m) with example
credentials JSON, a step-by-step testing workflow, and config-file usage.

Cross-linked from OasisLMF-package.rst and added to the main toctree.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-17 09:36 UTC

@sambles sambles merged commit 7eddf7c into main Jun 17, 2026
1 check passed
@sambles sambles deleted the feature/api-client-docs branch June 17, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Oasis API Client Documentation

3 participants