summaryrefslogtreecommitdiffstats
path: root/rust/src/endpoints.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-10 15:06:00 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-10 15:06:00 -0700
commit0bc5118ebf944d1754409dc742552ed1b543346a (patch)
treed81327741ee0f351a759617c1110abfde996d8a8 /rust/src/endpoints.rs
parent781b0d792c80f3394227a8e60043ff1cbf753ff4 (diff)
downloadfatcat-0bc5118ebf944d1754409dc742552ed1b543346a.tar.gz
fatcat-0bc5118ebf944d1754409dc742552ed1b543346a.zip
basic impl of extid changes
Diffstat (limited to 'rust/src/endpoints.rs')
-rw-r--r--rust/src/endpoints.rs22
1 files changed, 11 insertions, 11 deletions
diff --git a/rust/src/endpoints.rs b/rust/src/endpoints.rs
index d13a760e..4817184f 100644
--- a/rust/src/endpoints.rs
+++ b/rust/src/endpoints.rs
@@ -670,11 +670,11 @@ impl Api for Server {
isbn13: Option<String>,
pmid: Option<String>,
pmcid: Option<String>,
- core_id: Option<String>,
- arxiv_id: Option<String>,
- jstor_id: Option<String>,
- ark_id: Option<String>,
- mag_id: Option<String>,
+ core: Option<String>,
+ arxiv: Option<String>,
+ jstor: Option<String>,
+ ark: Option<String>,
+ mag: Option<String>,
expand: Option<String>,
hide: Option<String>,
_context: &Context,
@@ -697,11 +697,11 @@ impl Api for Server {
&isbn13,
&pmid,
&pmcid,
- &core_id,
- &arxiv_id,
- &jstor_id,
- &ark_id,
- &mag_id,
+ &core,
+ &arxiv,
+ &jstor,
+ &ark,
+ &mag,
expand_flags,
hide_flags,
)
@@ -709,7 +709,7 @@ impl Api for Server {
{
Ok(entity) => LookupReleaseResponse::FoundEntity(entity),
// TODO: ensure good 'Not Found" error message here
- // (was: "Not found: {:?} / {:?} / {:?} / {:?} / {:?} / {:?}", doi, wikidata_qid, isbn13, pmid, pmcid, core_id
+ // (was: "Not found: {:?} / {:?} / {:?} / {:?} / {:?} / {:?}", doi, wikidata_qid, isbn13, pmid, pmcid, core
Err(fe) => generic_err_responses!(fe, LookupReleaseResponse),
};
Box::new(futures::done(Ok(ret)))