flower
/

review · segments

Read and execute the spec at /Users/mikeferrara/Documents/code/tdr/thedarkroom/.solo-spec-legacy-rest-api.md exactly. In short: statically map every consumer of the WooCommerce Legacy REST API (/wc-api/) across shop/, laravel/, and the sibling repo /

codex 308 events 1 segments fix/fos-album-permission

segment 1 of 1

Map all WooCommerce Legacy REST API consumers across shop, laravel, and tdr-fos

Done

The assistant read the spec, verified Solo tooling, and ran extensive rg searches across all three codebases (shop/wp-content/plugins, shop/wp-content/themes/thedarkroom2015, laravel/app, tdr-fos) to identify every file and call site that uses the WooCommerce Legacy REST API. It identified the primary consumer as Laravel's WooCommerceAPIWrapper using WC_API_Client (afurculita/woocommerce-api-client), along with webhook receivers, admin tools, and third-party plugins like ShipStation (via hook, not REST). It also inspected config, .env, DatabaseCleanUp, and multiple controllers/models/jobs. The assistant wrote the findings to the Solo scratchpad 'legacy-rest-api-findings' and added a READY FOR REVIEW comment to the associated todo. No code changes were made.

outcome

Findings scratchpad written and todo marked ready for review; no code changes made.

next steps

key decisions

  • Use Solo scratchpad 'legacy-rest-api-findings' as output target
  • Exclude vendor/, node_modules/, minified assets, uploads, cache, and languages from search
  • Focus on custom code: shop/wp-content/plugins, shop/wp-content/themes/thedarkroom2015, laravel/app, tdr-fos (excluding vendor)
  • Do not attempt to recover secrets from .env; only note variable names
  • ShipStation integration uses the woocommerce_api_wc_shipstation action hook, not the legacy REST API endpoints, so it should be treated separately
  • tdr-fos does not directly consume the WooCommerce Legacy REST API; it communicates via a private FOS API that proxies to the shop
  • The Laravel app uses the afurculita/woocommerce-api-client package (v0.3.91) and the automattic/woocommerce package (^2.0) for REST API calls
  • Webhook endpoints in the Laravel app are at /webhooks/woocommerce/order/create, etc., and expect legacy payload shapes
  • Static analysis only; no runtime commands, no production access, no code changes
  • Findings written to Solo scratchpad 'legacy-rest-api-findings' with READY comment on todo 689

open questions

3 days ago 3 days ago