Skip to content

infoshift/query_strings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Query Strings

A quick guide on query strings.

Setting a Value to a Key

To set a value to a specific key in the query string,

/resource?key=value
key = request.args.get('key')

Setting a List Value to a Key

Set a list of values to a specific key in the query string. You can retrieve this using a specific.

/resource?list[]=1&list[]=2
list_ = request.args.getlist('list[]')

Setting a Boolean Value to a Key

Set a boolean value to a specific key in the query string.

/resource?boolean
boolean = 'boolean' in request.args

About

A quick guide on query strings.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages