From 2027162f9871ebe43a40b0ac4615149141b7a571 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 21 Jan 2019 12:23:08 -0800 Subject: allow arxiv and jstor lookups --- rust/fatcat-api-spec/examples/client.rs | 2 ++ rust/fatcat-api-spec/examples/server_lib/server.rs | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'rust/fatcat-api-spec/examples') diff --git a/rust/fatcat-api-spec/examples/client.rs b/rust/fatcat-api-spec/examples/client.rs index b4d90719..196580e4 100644 --- a/rust/fatcat-api-spec/examples/client.rs +++ b/rust/fatcat-api-spec/examples/client.rs @@ -554,6 +554,8 @@ fn main() { Some("pmid_example".to_string()), Some("pmcid_example".to_string()), Some("core_id_example".to_string()), + Some("arxiv_id_example".to_string()), + Some("jstor_id_example".to_string()), Some("expand_example".to_string()), Some("hide_example".to_string()), ) diff --git a/rust/fatcat-api-spec/examples/server_lib/server.rs b/rust/fatcat-api-spec/examples/server_lib/server.rs index 3c37106a..20336528 100644 --- a/rust/fatcat-api-spec/examples/server_lib/server.rs +++ b/rust/fatcat-api-spec/examples/server_lib/server.rs @@ -826,19 +826,23 @@ impl Api for Server { pmid: Option, pmcid: Option, core_id: Option, + arxiv_id: Option, + jstor_id: Option, expand: Option, hide: Option, context: &Context, ) -> Box + Send> { let context = context.clone(); println!( - "lookup_release({:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}) - X-Span-ID: {:?}", + "lookup_release({:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}) - X-Span-ID: {:?}", doi, wikidata_qid, isbn13, pmid, pmcid, core_id, + arxiv_id, + jstor_id, expand, hide, context.x_span_id.unwrap_or(String::from("")).clone() -- cgit v1.2.3