Azeem-Khan1 / TripleAJv3

Create Performance Task (2022-2023 Trimester 2)
MIT License
0 stars 4 forks source link

API Update tutorial #10

Open Azeem-Khan1 opened 1 year ago

Azeem-Khan1 commented 1 year ago
  1. In local broswer, add /api/players to the end of url (8086)
  2. It should show all records in the database
  3. To update from Postman, type in the url from the browser and add '/update'
  4. Make sure the PUT method is selected
  5. navigate body > raw > JSON
  6. Type in {"uid": "<uidOfAccount>", "data": {"<keyToUpdate>": <newValue>}} (change things inside <> as needed.)
  7. Click send
  8. Reload the browser tab
  9. Data should be updated and shown