Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/api/server.py
Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | |||||
@app.route('/content/missing/sha1', methods=['POST']) | @app.route('/content/missing/sha1', methods=['POST']) | ||||
@timed | @timed | ||||
def content_missing_per_sha1(): | def content_missing_per_sha1(): | ||||
return encode_data(get_storage().content_missing_per_sha1( | return encode_data(get_storage().content_missing_per_sha1( | ||||
**decode_request(request))) | **decode_request(request))) | ||||
@app.route('/content/skipped/missing', methods=['POST']) | |||||
@timed | |||||
def skipped_content_missing(): | |||||
return encode_data(get_storage().skipped_content_missing( | |||||
**decode_request(request))) | |||||
@app.route('/content/present', methods=['POST']) | @app.route('/content/present', methods=['POST']) | ||||
@timed | @timed | ||||
def content_find(): | def content_find(): | ||||
return encode_data(get_storage().content_find(**decode_request(request))) | return encode_data(get_storage().content_find(**decode_request(request))) | ||||
@app.route('/content/add', methods=['POST']) | @app.route('/content/add', methods=['POST']) | ||||
@timed | @timed | ||||
▲ Show 20 Lines • Show All 431 Lines • Show Last 20 Lines |