Tell us what’s happening:
Describe your issue in detail here.
there are 2 requirements that i am still unable to fulfill
You can send a GET request to /api/issues/{projectname} and filter the request by also passing along any field and value as a URL query (ie. /api/issues/{project}?open=false ). You can pass one or more field/value pairs at once.
-. You can send a DELETE request to /api/issues/{projectname} with an _id to delete an issue. If no _id is sent, the return value is { error: 'missing _id' } . On success, the return value is { result: 'successfully deleted', '_id': _id } . On failure, the return value is { error: 'could not delete', '_id': _id } .
I’m pretty sure everything is as it should be, i’ve watched tutorials to see where i did wrong but i didn’t find anything.
You can send a GET request to /api/issues/{projectname} for an array of all issues for that specific projectname , with all the fields present for each issue.
Not all of them will have the open property. Just don’t assert for the open property on the first GET test. That should let you pass.
You can send a `GET` request to `/api/issues/{projectname}` and filter the request by also passing along any field and value as a URL query (ie. `/api/issues/{project}?open=false` ). You can pass one or more field/value pairs at once.
and also the DELETE is unstable, sometimes it works, while other times it doesn’t
You can send a DELETE request to /api/issues/{projectname} with an _id to delete an issue. If no _id is sent, the return value is { error: 'missing _id' }. On success, the return value is { result: 'successfully deleted', '_id': _id }. On failure, the return value is { error: 'could not delete', '_id': _id }.
Maybe try deleting the collection and start with a fresh one. You can also try inspecting the network in the browser and look at the response for that request.
As I said, the code was passing for me with my own DB so it’s not likely to be the code that is the problem. Try using a VPN and see if it helps (it’s weird but it helps for some people).