You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor successful response of POST /ideas to include all attributes of newly created Idea entry in database:
Request remains the same:
POST /ideas
Body:
{
"idea": "Test idea for Keanu Reeves",
"id": "c1e9a92195d98380747159598983bf96",
"action": "Create an App",
"isGenius": "False",
"question": "Create an app about learning to code",
"categories": [{"name": "Education"}, {"name": "Technology"}]
}
Successful response should be refactored to be similar to request but include database id and remove token:
Status: 200
{
"id": 5
"idea": "Test idea for Keanu Reeves",
"action": "Create an App",
"isGenius": "False",
"question": "Create an app about learning to code",
"categories": [{"name": "Education"}, {"name": "Technology"}]
}
The text was updated successfully, but these errors were encountered:
Refactor successful response of
POST /ideas
to include all attributes of newly created Idea entry in database:Request remains the same:
Successful response should be refactored to be similar to request but include database id and remove token:
The text was updated successfully, but these errors were encountered: