Gitea · Example Payload

Gitea Rest Api User Repo Create Example

GitSource ControlDevOpsCI/CDCode HostingOpen SourceSelf HostedPackage RegistryIssue TrackingPull Requests

Gitea Rest Api User Repo Create Example is an example object payload from Gitea, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationrequestresponse

Example Payload

Raw ↑
{
  "operation": {
    "method": "POST",
    "path": "/user/repos",
    "operationId": "createCurrentUserRepo",
    "summary": "Create a repository",
    "tags": [
      "repository",
      "user"
    ]
  },
  "request": {
    "headers": {
      "Authorization": "token abc123",
      "Content-Type": "application/json"
    },
    "body": {
      "name": "hello-world",
      "description": "A sample repository",
      "private": false,
      "auto_init": true,
      "default_branch": "main",
      "license": "MIT",
      "gitignores": "Go"
    }
  },
  "response": {
    "status": 201,
    "body": {}
  }
}