- Add legacyAPI.js service for authentication and deployment management
- Add deployments.js routes for device listing
- Add FEATURE-SENSORS-SYSTEM.md spec
- Add bug report: set_deployment missing deployment_id in response
- Add test scripts for Legacy API (create_deployment, find_deployments)
- Update beneficiaries.js to return deploymentId
BUG: Legacy API set_deployment returns {"ok": 1} but does NOT return
deployment_id. Waiting for Robert to fix this before we can auto-create
deployments for new beneficiaries.
9 lines
308 B
Bash
9 lines
308 B
Bash
#!/bin/bash
|
|
TOKEN=$(cat /tmp/legacy_token.txt | tr -d '\n')
|
|
# Ищем deployment по последним ID
|
|
curl -s -X POST "https://eluxnetworks.net/function/well-api/api" \
|
|
-d "function=find_deployments" \
|
|
-d "user_name=anandk" \
|
|
-d "token=$TOKEN" \
|
|
-d "well_ids=40,41,42,43,44,45,46,47,48,49,50"
|