diff options
Diffstat (limited to 'rust/fatcat-api-spec/examples')
-rw-r--r-- | rust/fatcat-api-spec/examples/client.rs | 2 | ||||
-rw-r--r-- | rust/fatcat-api-spec/examples/server_lib/server.rs | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/rust/fatcat-api-spec/examples/client.rs b/rust/fatcat-api-spec/examples/client.rs index 40a5a3ab..0cb4a920 100644 --- a/rust/fatcat-api-spec/examples/client.rs +++ b/rust/fatcat-api-spec/examples/client.rs @@ -596,6 +596,8 @@ fn main() { Some("core_id_example".to_string()), Some("arxiv_id_example".to_string()), Some("jstor_id_example".to_string()), + Some("ark_id_example".to_string()), + Some("mag_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 98f31485..2c67079f 100644 --- a/rust/fatcat-api-spec/examples/server_lib/server.rs +++ b/rust/fatcat-api-spec/examples/server_lib/server.rs @@ -848,13 +848,15 @@ impl Api for Server { core_id: Option<String>, arxiv_id: Option<String>, jstor_id: Option<String>, + ark_id: Option<String>, + mag_id: Option<String>, expand: Option<String>, hide: Option<String>, context: &Context, ) -> Box<Future<Item = LookupReleaseResponse, Error = ApiError> + Send> { let context = context.clone(); println!( - "lookup_release({:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}) - X-Span-ID: {:?}", + "lookup_release({:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}) - X-Span-ID: {:?}", doi, wikidata_qid, isbn13, @@ -863,6 +865,8 @@ impl Api for Server { core_id, arxiv_id, jstor_id, + ark_id, + mag_id, expand, hide, context.x_span_id.unwrap_or(String::from("<none>")).clone() |