Open
Description
When running Code Listing 4.32, it didn't return as expected. The error is "Request body deserialize error : missing field id at line 4 column 1". I'm not sure if this is the expected result or if there is a problem with the Chinese translated version of the book I'm currently reading. I found that when running the code in the author's code repository at /ch_04/fiunal and using the following curl command:
curl --location --request POST 'http://localhost:3030/questions' \ --header 'Content-Type: application/json' \ --data-raw '{ "title":"New question", "content":"New content" }'
It returned "router not found". Thank you for answering my question.
Metadata
Metadata
Assignees
Labels
No labels