These are chat archives for rust-lang/rust

23rd
May 2016
fuying
@fuyingfuying
May 23 2016 01:21
Hi, I want to build a restful api. But I've confronted with some basic http and URL knowledge.
For example, if i have a model named User, its restful root URL is : [host]/api/v1/users. Then i want to get some user's information filtered by fields of id and age. My questions are:
Are the query strings placed in the iron::request::Request object or in the route?
How can i realize it?
Please help me. Thanks
Eric Forgy
@EricForgy
May 23 2016 03:09
Hi @fuyingfuying . I'm totally new to Rust,s o not sure how much help I can be. This url does not deal specifically with URL parameters, but you might find it helpful http://dfockler.github.io/2016/05/20/web-server.html
But generally speaking, I'd expect the query strings to be in a Request object
fuying
@fuyingfuying
May 23 2016 03:11
@EricForgy Thanks for your help! I will research it immediatly.
Eric Forgy
@EricForgy
May 23 2016 03:13
I remember seeing another example REST API using Rust. That is probably another good keyword for Google (or Baidu :)): "REST API Rust language"
fuying
@fuyingfuying
May 23 2016 03:14
:+1: You know Baidu???
Eric Forgy
@EricForgy
May 23 2016 03:15
I am in HK :)
Been here almost 7 years but still cannot read or speak Chinese although my daughter can now speak both Putonghua and Cantonese :+1:
fuying
@fuyingfuying
May 23 2016 03:16
Oh my god! Now I use bing in my country. i'm afraid to use baidu.
True love life, stay away from baidu
Eric Forgy
@EricForgy
May 23 2016 03:16
Hehe :D
So try "REST API Rust" in Bing :)
fuying
@fuyingfuying
May 23 2016 03:17
:smile:
Usually children learn language faster than adults.
Eric Forgy
@EricForgy
May 23 2016 03:18
Yeah :+1:
fuying
@fuyingfuying
May 23 2016 03:19
May you live in interesting times in china. Especially the food.
Eric Forgy
@EricForgy
May 23 2016 03:19
:+1:
Lisq
@uncode
May 23 2016 03:30
.
Kabelo
@KabeloShongwe
May 23 2016 11:05
Hi all, just joined, new in rust. I'm from South Africa.
Zakarum
@omni-viral
May 23 2016 11:58
@KabeloShongwe Hi.
Eric Forgy
@EricForgy
May 23 2016 13:54
:wave: