HashtagSell / posting-api

API for storage and retrieval of posting details for Hashtagsell
0 stars 0 forks source link

:'( Cry... Cannot post answer to a question #16

Closed that1guy closed 9 years ago

that1guy commented 9 years ago

Error I'm receiving when I post an answer to a question:

{
  "name": "ResourceNotFound",
  "message": "resource not found",
  "method": "POST",
  "statusCode": 404,
  "url": "/v1/postings/87e8462c658144ae98e56ad456b420c4/questions/dc12db6a93194012895c71271ede8806/answers"
}

Here's what I'm passing as payload body:

{
"username" : "bdavis", 
"value" : "Yes, it does."
}

Here is the original question as stored in questions collection:

{
"postingId":"87e8462c658144ae98e56ad456b420c4",
"value":"Here's another question",
"username":"bdavis",
"questionId":"dc12db6a93194012895c71271ede8806",
"modifiedAt":"2015-02-23T07:16:00.884Z",
"createdAt":"2015-02-22T03:03:15.370Z",
"plus":[],
"answers":[],