'How to create an issue on Github using Postman with Github's API?
I was trying to create an issue on GitHub using GitHub's API with Postman.
It does not work even after I provide the personal token generated on my site.
Does someone know what goes wrong?
Solution 1:[1]
As documented, a trailing slash in your URL
https://api.github.com/repos/hanc3/testapi/issues/
would result in an error.
Expect it would be a 405 (Method Not Allowed)
, when adding a slash at the endpoint causes the API to reject
In your case, it is a 404
, which means you did not properly authenticate when calling that API
Double-check your postman Authorization tab: it should include a Authorization: token
And headers:
Content-Type : application/json
Authorization : token
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | DᴀʀᴛʜVᴀᴅᴇʀ |