Description
- Gitea version (or commit ref): 1.10
- Git version: n/a
- Operating system: n/a
- Database: n/a
- Test url: https://try.gitea.io/api/swagger
Description
When working with the API I came across a number of documentation inconsistencies:
-
all API calls for users refer to
{username}
.. however looking at the fields of a user there is nousername
field, onlylogin
. More confusingly creating a new user does list theusername
field but it also lists thelogin_name
field but not thelogin
field -
all API calls for repos refer to
{owner}
.. a repository does have an owner, but in this case the{owner}
can also refer to an org, so maybe we should refer to this as{parent}
.. but the api documentation for the Models lists theparent
field, but not its type. -
all API calls for repos refer to
{repo}
.. is this the name or the id? This is not clear from the docs -
I was going to mention that the responses/body are only represented by example values .. but it turns out you can click on "model" to get the definition .. this is nice, but not very obvious from the UI (I only found out when writing this issue).
None of these issues are showstoppers for working with the API .. but it increases the number of wtf's per minute greatly when first working with the API