Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[api] Stop observation to address #13

Open
olemis opened this issue Feb 24, 2019 · 0 comments
Open

[api] Stop observation to address #13

olemis opened this issue Feb 24, 2019 · 0 comments
Assignees

Comments

@olemis
Copy link
Contributor

olemis commented Feb 24, 2019

[DELETE] /api/transactions/history/to/{address}/observation

Should stop observation of the transactions that transfer fund to the address . Should affect result of the [GET] /api/transactions/history/to/{address} .

Errors:

* `204 No content` : transactions to the  address  are not observed.

Python implementation

@api.route('/transactions/history/to/<string:address>/observation', methods=['DELETE'])
def del_history_to_address(address):
    """
    Stops observation of the transactions that transfer fund to the address 
    """
    
    result = delete_transaction_observation_to_address(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 ""
@AntiD2ta AntiD2ta self-assigned this Feb 25, 2019
AntiD2ta pushed a commit to uhsimelo/skyxcommons that referenced this issue Feb 27, 2019
…- Add spec for endpoints /api/addresses/{address}/validity /api/transactions/history/to/{address}/observation /api/transactions/history/from/{address}/observation /api/transactions/history/from/{address}?take=integer&[afterHash=string]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants