#5038 API doesn't work correctly with private projects
Opened 3 years ago by mfocko. Modified 3 years ago

I had a look at issue in our library https://github.com/packit/ogr/issues/330. Couldn't find any instance of Pagure that would allow creating private projects, so I ran locally from the master (da0c1b6).

I have found out there is no way to utilize API for private projects, except:

  • creating issues
  • listing issues
  • acquiring specific issue
  • creating PR
  • adding another user to repo
  • setting commit status

Everything else I tested resulted in 404 (e.g. project description, project info, listing branches, listing tags, list of PRs, getting PR, getting commit statuses, getting owners)

PS: If I understand correctly, only way to access private project through API is project token, right?


To use the API with private projects, all your requests (POST, GET...) will need
to be authenticated, from what you've said it is my understanding that they were
in your tests, but I'm just double checking :)

To use the API with private projects, all your requests (POST, GET...) will need
to be authenticated, from what you've said it is my understanding that they were
in your tests, but I'm just double checking :)

Yes, used project token.
Checked user token now, seems to work fine with the enumeration above (except creating issues and setting commit status)

Login to comment on this ticket.

Metadata