Skip to content

Commit

Permalink
Merge pull request #325 from JulienPalard/mdk-doc
Browse files Browse the repository at this point in the history
FIX documentation: it's not a post, it's a patch to upload a product image
  • Loading branch information
specialunderwear authored Jan 24, 2024
2 parents 1e10a52 + 7963705 commit f24ef46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/topics/the_admin_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ know the current API url or you only know the product ``upc``.

Suppose we know the full url then it can be done like this::

session.post(
session.patch(
"http://127.0.0.1:8000/oscarapi/admin/products/1/",
json={
"images": [{
Expand All @@ -51,7 +51,7 @@ Suppose you don't know the url in the API, you'd have to know some unique attrib
for example, the UPC. You can just use the product list API and if you send
enough data to uniquely identify the product, it will succeed::

session.post(
session.patch(
"http://127.0.0.1:8000/oscarapi/admin/products/",
json={
"upc": "1_5_1",
Expand Down

0 comments on commit f24ef46

Please sign in to comment.