Back End Development and APIs Projects - Exercise Tracker

Tell us what’s happening:
My test #8 fails (The response returned from POST /api/users/:_id/exercises will be the user object with the exercise fields added.) Although the output is exactly the same as in the example.
Below is a link to my repository. I will be very grateful for your help

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36

Challenge: Back End Development and APIs Projects - Exercise Tracker

Link to the challenge:

Your date isn’t formatted correctly.

Response

{
    "_id": "64c17f0a126a7504e559538e",
    "username": "fcc_test_16904025702",
    "date": "1990-01-01",
    "duration": 60,
    "description": "test"
}

Example response

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

Thanks a lot. It’s helped me. Special thanks for the added test.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.