Skip to content

Create API client docs or guide  #4247

Closed
@stevegt

Description

@stevegt

We need some API client docs. This would be a place to list gitea-compatible swagger or openapi client libraries, gitea-specific clients, and client developer docs, hints, tips, or suggestions.

As an example use case, I just now spent the last 24 hours trying to get the Authorization: header to work from an openapi client. I wound up duplicating #3673 with #4243, but only after grepping around and finally finding this:

if len(auths) == 2 && auths[0] == "token" {
For lack of any better place to put it, I've put a mini-HOWTO into the comments of #4243. A google search right now for site:docs.gitea.io authorization turns up nothing relevant.

I'm assuming client docs or guides should go into the ./docs tree. If there are no objections, I'll start a single page for now, e.g. ./docs/content/doc/advanced/api.XXX.md, later promoting to ./docs/content/doc/api/* as the content accumulates.

Pinging @daviian because #4037 provided most of the API docs we have so far. ;-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/docsThis PR mainly updates/creates documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions