Is there a way to read one query string param without serde at all? #1635
Answered
by
davidpdrsn
frederikhors
asked this question in
Q&A
-
Hi guys! I read this example code and I understand that I have to detect only one param in query string: |
Beta Was this translation helpful? Give feedback.
Answered by
davidpdrsn
Dec 13, 2022
Replies: 1 comment
-
Do you mean query params or path params? Regardless you can parse it as For path params you can also use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
frederikhors
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you mean query params or path params?
https://domain.com/players/123456789
doesn't contain query params.Regardless you can parse it as
Query<HashMap<String, String>>
orPath<HashMap<String, String>>
.For path params you can also use
Path<T>
for anyT: Deserialize
. For examplePath<i32>