Comments (1)
Hi,
I did some experiments to find out the difference between the two endpoints. I created 4 types of repos that are supported by Gogs:
- private
- public (Link)
- unlisted: publically accessible via direct link but not via search or APIs (Link)
- mirror (Link)
https://try.gogs.io/api/v1/repos/search?q=KShivendu&page=1 only returns the public repo and the mirror repo. While the "explore" section shows these along with the "unlisted" repos that the user created.
This seems like the expected behavior. And based on this, the number of visible repos obtained by both the approaches should be the same (excluding the user's own "unlisted" repos).
But then what's causing such a big difference in the number of repos returned by these two endpoints?
from docs-api.
Related Issues (20)
- update api doc for DELETE `/repos/:username/:reponame/collaborators/:collaborator` HOT 1
- Have some questions about using API ... HOT 6
- API returns Unauthorized on some endpoints HOT 1
- about git data trees question
- about 403 question HOT 2
- About basic authentication. HOT 7
- Get list of Git tags HOT 4
- /api/v1/ get 404 HOT 4
- Looking to publish release through Http request from Jenkins HOT 1
- can not curl releases api
- I can't list all branches in one repo of one org
- How to create new branch in repo via CLI
- Prohibit login parameter
- Git Trees API without path parameter!
- How to get Account Expiration Date with API
- PUT /orgs/:orgname/memberships/:username HOT 2
- POST /orgs/:orgname (create an Org via REST API) 🙏
- How to obtain member information of organizations through the api interface ?
- /repos/xxx/hooks binding check error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs-api.