Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Martin Dinov
POD
Commits
42cb42f6
Commit
42cb42f6
authored
4 years ago
by
Ruben Seggers
Browse files
Options
Download
Email Patches
Plain Diff
update uri_exists to external_id_exists
parent
057a0517
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/HTTP_API.md
+4
-4
docs/HTTP_API.md
src/warp_api.rs
+1
-2
src/warp_api.rs
with
5 additions
and
6 deletions
+5
-6
docs/HTTP_API.md
+
4
-
4
View file @
42cb42f6
...
...
@@ -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 exist
s
,
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/
...
...
This diff is collapsed.
Click to expand it.
src/warp_api.rs
+
1
-
2
View file @
42cb42f6
...
...
@@ -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
|
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment