issues
search
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
In local broswer, add /api/players to the end of url (8086)
It should show all records in the database
To update from Postman, type in the url from the browser and add '/update'
Make sure the PUT method is selected
navigate body > raw > JSON
Type in
{"uid": "<uidOfAccount>", "data": {"<keyToUpdate>": <newValue>}}
(change things inside <> as needed.)
Click send
Reload the browser tab
Data should be updated and shown
{"uid": "<uidOfAccount>", "data": {"<keyToUpdate>": <newValue>}}
(change things inside <> as needed.)