Skip to content

Parts Catalog API: Write Operations #143

@btoron

Description

@btoron

Overview

Implement the Parts Catalog API write methods in the async client. This is a new API module not yet present in the async client. No GET operations exist in this module.

Endpoints (3)

ID Method Path
PC001U PUT catalogs/{catalog}/{language}
PC002U PUT catalogs/{catalog}/{language}/{itemLabel}
PC002D DELETE catalogs/{catalog}/{language}/{itemLabel}

Method count: 3 write operations (PUT/DELETE)

Implementation Notes

  • Create new module ofsc/async_client/partscatalog.py with AsyncOFSPartsCatalog class
  • Wire into AsyncOFSC main client (similar to capacity, metadata, core)
  • Create corresponding request/response Pydantic models in ofsc/models/ (new partscatalog.py or add to __init__.py)
  • Create test file tests/async/test_async_partscatalog.py
  • Run uv run python scripts/update_endpoints_doc.py --force after implementation
  • Update README with new Parts Catalog section

Acceptance Criteria

  • AsyncOFSPartsCatalog class created with all 3 write methods
  • Module wired into AsyncOFSC
  • Request/response Pydantic models created
  • Mocked tests passing
  • Live tests marked with @pytest.mark.uses_real_data
  • ENDPOINTS.md updated

Metadata

Metadata

Assignees

No one assigned

    Labels

    asyncAsync client implementationenhancementNew feature or requestparts-catalogParts Catalog API module

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions