Skip to content

Implementation of Gogs Lister

Gogs hosts git repositories so it will be easy to "load" it into swh. It's base url is https://try.gogs.io/api/v1 and to get the projects by page the api is https://try.gogs.io/api/v1/repos/search (default limit is 10 results per page) and the next url can be found in the headers in "Link" (It returns two urls one is the url of next page and the second is the url of last page separated by comma and with some python logic it can be extracted easily). It requires you to have a token which I have downloaded and also you can limit the number of results. In their documentation they have written that they want their api to be like that of github V3 so I think implementation of gogs lister will be similar. The token needs to be sent as a parameter in the request.

Plan:


Migrated from T1721 (view on Phabricator)

Edited by Antoine R. Dumont
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information