Commit 8d6f575
Fix Members API implementation
- Update Member model to match actual API response format
- Use 'identity' and 'global_name' fields instead of 'email'
- Use 'icon' instead of 'avatar', 'status' instead of 'is_active'
- Add backward compatibility properties for old field names
- Fix response parsing for get_member (handle nested response)
- Add space_id to members for backward compatibility
- Members tests now pass 18/22 (up from 3/17)
API endpoints working:
- GET /v1/spaces/{space_id}/members (list members)
- GET /v1/spaces/{space_id}/members/{member_id} (get member)
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 9a90b76 commit 8d6f575
2 files changed
Lines changed: 52 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
| 612 | + | |
612 | 613 | | |
613 | 614 | | |
614 | 615 | | |
| |||
617 | 618 | | |
618 | 619 | | |
619 | 620 | | |
620 | | - | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
621 | 626 | | |
622 | 627 | | |
623 | 628 | | |
| |||
633 | 638 | | |
634 | 639 | | |
635 | 640 | | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
636 | 646 | | |
637 | 647 | | |
638 | 648 | | |
| |||
1284 | 1294 | | |
1285 | 1295 | | |
1286 | 1296 | | |
1287 | | - | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
1288 | 1302 | | |
1289 | 1303 | | |
1290 | 1304 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
365 | 365 | | |
366 | 366 | | |
| 367 | + | |
367 | 368 | | |
368 | | - | |
| 369 | + | |
| 370 | + | |
369 | 371 | | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
374 | 404 | | |
375 | 405 | | |
376 | 406 | | |
| |||
0 commit comments