Commit a566588e authored by David Sikter's avatar David Sikter
Browse files

Rename api endpoint entries/edit -> entries/edit_old

parent a85cf18a
......@@ -377,7 +377,7 @@ class Api {
}
}
})
return this.post('entries/edit', edit)
return this.post('entries/edit_old', edit)
}
}
......
......@@ -1161,7 +1161,7 @@ _editable_quantities = {
@router.post(
'/edit',
'/edit_old',
tags=[metadata_tag],
summary='Edit the user metadata of a set of entries',
response_model=EntryMetadataEditResponse,
......
......@@ -180,7 +180,7 @@ def integrationtests(auth: api.Auth, skip_parsers: bool, skip_publish: bool, ski
'datasets': [{'value': dataset}]}
response = api.post(
'entries/edit',
'entries/edit_old',
data=json.dumps(dict(actions=actions, **query_request_params)),
auth=auth)
assert response.status_code == 200, response.text
......
......@@ -82,7 +82,7 @@ class TestEditRepo():
if verify:
data.update(verify=verify)
return self.api.post('entries/edit', headers=self.test_user_auth, json=data)
return self.api.post('entries/edit_old', headers=self.test_user_auth, json=data)
def assert_edit(self, rv, quantity: str, success: bool, message: bool, status_code: int = 200):
data = rv.json()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment