So I’m trying to figure out how “/api/exercise/log” is supposed to work in:
"
4. I can retrieve a full exercise log of any user by getting /api/exercise/log with a parameter of userId(_id). Return will be the user object with added array log and count (total exercise count).
"
I added to a new user to the database, and the id for this is “rkfmRTSpm”
When I do:
“https://fuschia-custard.glitch.me/api/exercise/log?{rkfmRTSpm}”
OR
https://fuschia-custard.glitch.me/api/exercise/log?rkfmRTSpm
I get “unknown userId”
but when I do
“https://fuschia-custard.glitch.me/api/exercise/users”
and search for “rkfmRTSpm”, it finds the associated user.
I am clearly missing something. Can someone please point out what it is?
Much appreciated.