Quality Assurance 2: Issue Tracker

User Stories

  1. I can POST /api/issues/{projectName} with form data containing required issue_title, issue_text, and created_by fields. In addition to the required fields, I can optionally send assigned_to and status_text.
  2. The object saved (and returned) will include all of those fields (blank if there was no input) and also include created_on (date/time), updated_on (date/time), open (boolean -- true for open, false for closed), and _id.
  3. I can PUT /api/issues/{projectName} with an _id and any fields in the object I want to update. Return the message 'Successfully updated' if the update was successful, or 'Could not update {_id}' if it was not. Successfully updating an object should also update the updated_on field. If no fields are sent, return 'No updated fields sent'.
  4. I can DELETE /api/issues/{projectName} with an _id to completely delete an issue. If no _id is sent return '_id error'. Return 'Deleted {_id}' if you successfully delete an issue, and 'Could not delete {_id}' if you could not.
  5. I can GET /api/issues/{projectName} for an array of all issues on that specific project with all the information for each issue as was returned when posted. I can GET /api/issues/{projectName} for an array of all issues on that specific project will all the information for each issue.
  6. I can filter my GET request by also passing along any field and value in the query (for example, /api/issues/{project}?open=false). I can pass along as many fields/values as I want.
  7. All 11 functional tests are complete and passing.

Example get usage:

/api/issues/{project}
/api/issues/{project}?open=true&assigned_to=Joe

Example return:

[{ "_id": "5871dda29faedc3491ff93bb", "issue_title": "Fix error in posting data", "issue_text": "When we post data it has an error.", "created_on": "2017-01-08T06:35:14.240Z", "updated_on": "2017-01-08T06:35:14.240Z", "created_by": "Joe", "assigned_to": "Joe", "open": true, "status_text": "In QA" },...]

EXAMPLE: Go to /apitest/ project issues


API Tests:

Submit issue on apitest







Update issue on apitest (Change any or all to update issue on the _id supplied)









Delete issue on apitest