Commit 5e33c29
authored
Update smart contract endpoints to canonical paths (#14)
- Deploy: /api/v1/contract/deploy → /api/v1/blockchain/contracts/deploy
- Execute: /api/v1/contract/execute → /api/v1/blockchain/contracts/{id}/call
- Move contractId from request body to URL path
- Query: POST /api/v1/contract/query/{id} → GET /api/v1/blockchain/contracts/{id}/state
- Change from POST to GET method
- Simplify to retrieve contract state directly
Uses canonical /blockchain/contracts/* paths for consistency with ZHTP node implementation.
Fixes #81 parent 2b9eded commit 5e33c29
1 file changed
+5
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
621 | | - | |
| 621 | + | |
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
| 633 | + | |
634 | 634 | | |
635 | 635 | | |
636 | | - | |
| 636 | + | |
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
| |||
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
| 645 | + | |
| 646 | + | |
653 | 647 | | |
654 | 648 | | |
655 | 649 | | |
| |||
0 commit comments