fibercrypto / fibercrypto/skyxcommons

Delete observation API endpoint

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

[DELETE] /api/balances/{address}/observation

Should forget the wallet address and stop observing its balance.

Errors:
■ 204 No content - specified address is not observed

Python implementation

```py
@api.route('/balances//observation', methods=['DELETE'])
def delete_observation(address):
"""
Delete the specified address from observation list
"""

result = delete_address_observation(address)

# if successfully deleted from observation list, return a plain 200
if "error" in result:
return make_response(jsonify(build_error(result["error"])), result["status"])
else:
return ""

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.