You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To make our lives easier, it would be nice to have an update API call that allows us to make changes to data in the db remotely. This also needs to be protected by superuser access-level to prevent nefarious activity. No need to update the front end code yet since this is mostly for us internally.
TODO
Add a new r.put(...) route to routes.py that allows client to pass in a dictionary of product fields and updates the product record in the database accordingly (by primary_key...pk).
Make sure the route is protected by superuser auth.
Test with a local API client like Postman and ensure products are updated properly.
The text was updated successfully, but these errors were encountered:
Description
To make our lives easier, it would be nice to have an update API call that allows us to make changes to data in the db remotely. This also needs to be protected by superuser access-level to prevent nefarious activity. No need to update the front end code yet since this is mostly for us internally.
TODO
r.put(...)
route toroutes.py
that allows client to pass in a dictionary of product fields and updates the product record in the database accordingly (by primary_key...pk).The text was updated successfully, but these errors were encountered: