what is project here ?
/api/issues/{project}?open=true&assigned_to=Joe
how can I use that in code
what is project here ?
/api/issues/{project}?open=true&assigned_to=Joe
how can I use that in code
probably something to fill in?
can you provide some context? where have you found this? is part of some documentation? what’s the usage?
{projects}
is a placeholder for the name of the project to which you are requesting the issues.
For example:
A GET request to https://issue-tracker--freecodecamp.repl.co/api/issues/apitest
gives you an array with all the issues in apitest.
A GET request to https://issue-tracker--freecodecamp.repl.co/api/issues/freecodecamp
gives you an array with all the issues in freecodecamp. (I just created one by filling the form in https://issue-tracker--freecodecamp.repl.co/freecodecamp/
)
when I’m doing
https://issuemax.glitch.me/hello&open=true
how I’m supposed to use that I get a obbject with
{ project: 'hello&open=true' }
should I do something like this
https://issuemax.glitch.me/?open=true
I’m totally confused
Double-check the syntax in the example. This is not quite right.
yes
should I do
https://issuemax.glitch.me//api/issues/issuemax/hello&open=true
?
This is the example syntax. Specifically, check how the URL parameters are structured.
What comes after the project name?
this
https://issuemax.glitch.me/api/issues/issuemax?open=true
Is that syntax working for you? Looks correct to me.
I’m gettting no output
.get(function (req, res) {
console.log(req.query);
res.json(req.query)
})
Double-check that your routes are correct as well. What output are you expecting?
app
.route("/api/issues/")
.get(function (req, res) {
console.log(req.query);
res.json(req.query)
})
currently I’m expecting it to just print what I get in url paramaters