Commit 42cb42f6 authored by Ruben Seggers's avatar Ruben Seggers
Browse files

update uri_exists to external_id_exists

parent 057a0517
Showing with 5 additions and 6 deletions
+5 -6
......@@ -135,11 +135,11 @@ Mark an item as deleted by:
* Updating `dateModified` (server-s time is taken)
### GET /v1/deprecated/uri_exists/{uri}
⚠️ DEPRECATED Check if an item exists with the `uri`.
### GET /v1/deprecated/external_id_exists/{uri}
⚠️ DEPRECATED Check if an item exists with the `externalId`.
Returns `true` successfully if such item exists,
or returns `false` successfully if such item does not exist.
Returns `true` if such an item does exist,
or returns `false` if such an item does not exist.
### POST /v1/search_by_fields/
......
......@@ -102,10 +102,9 @@ pub async fn run_server(sqlite_pool: Pool<SqliteConnectionManager>) {
respond_with_result(result)
});
// TODO: change endpoint to external_id_exists, instead of uri_exists
let pool = pool_arc.clone();
let external_id_exists = api_version_1
.and(warp::path!("deprecated" / "uri_exists" / String))
.and(warp::path!("deprecated" / "external_id_exists" / String))
.and(warp::path::end())
.and(warp::get())
.map(move |external_id: String| {
......
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