Backend - Exercise Tracker: The response returned from POST /api/users/:_id/exercises will be the user object with the exercise fields added.?

Can anyone clarify to me, what format is expected of this spec?
“The response returned from POST /api/users/:_id/exercises will be the user object with the exercise fields added.”

The instruction only shows the format for user object (without any property relevant to exercise), exercise object, and log object.

Thank you.

Your project link(s)

solution: https://replit.com/@shugyoza/boilerplate-project-exercisetracker

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36

Challenge: Exercise Tracker

Link to the challenge:

The response should be like this

{
  username: "fcc_test"
  description: "test",
  duration: 60,
  date: "Mon Jan 01 1990",
  _id: "5fb5853f734231456ccb3b05"
}
1 Like

Thank you. I still cannot pass the particular spec, although right now only two more to pass, but I am going to open another thread since I think the issue might be different from this format question. Thank you!

1 Like