jdhao's digital space
Recent content on jdhao's digital space
马上订阅 jdhao's digital space RSS 更新: https://jdhao.github.io/index.xml
How to Parse Query Param With Multiple Values in FastAPI
2023年7月14日 04:14
In HTTP request, same query parameter with multiple values are allowed.
For example, for query parameter brand, the query string looks like this: brand=foo&brand=bar.
How to parse value of this parameter to a list in FastAPI?
There are several different ways.