EzequielRomio / users_api

Flask API using SQLite3
0 stars 0 forks source link

Implement query_string for users GET fields instead of using request.data #6

Open pablodo opened 3 years ago

pablodo commented 3 years ago

Example

/users/3?fields=id,name,last_name

https://flask.palletsprojects.com/en/1.1.x/api/?highlight=quer#flask.Request.query_string

Check how is returned on request.query_string but it might be only the fields=id,name,last_name so you might need to manually conver it into a dictionary first

pablodo commented 3 years ago

https://stackoverflow.com/questions/10113090/best-way-to-parse-a-url-query-string