gitea/src/fd560f3e-ce19-474f-86ca-1fb.../README.md

2.3 KiB

██████╗  ██████╗ ██╗    ██╗███████╗██████╗
██╔══██╗██╔═══██╗██║    ██║██╔════╝██╔══██╗
██████╔╝██║   ██║██║ █╗ ██║█████╗  ██████╔╝
██╔═══╝ ██║   ██║██║███╗██║██╔══╝  ██╔══██╗
██║     ╚██████╔╝╚███╔███╔╝███████╗██║  ██║
╚═╝      ╚═════╝  ╚══╝╚══╝ ╚══════╝╚═╝  ╚═╝

class Repos (Details)

namespace: VDM\Joomla\Gitea\User extends: Api

@startuml
class Repos  #Gold {
  + create(string $name, ?string $description = null, ...) : ?object
  + list(int $page = 1, int $limit = 10) : ?array
  + star(string $owner, string $repo) : string
  + unstar(string $owner, string $repo) : string
}

note right of Repos::create
  Create a repository for the authenticated user.

  since: 3.2.0
  return: ?object
  
  arguments:
    string $name
    ?string $description = null
    bool $private = false
    bool $autoInit = false
    ?string $defaultBranch = null
    ?string $gitignores = null
    ?string $issueLabels = null
    ?string $license = null
    ?string $readme = null
    ?bool $template = null
    ?string $trustModel = null
end note

note right of Repos::list
  List the repos that the authenticated user owns.

  since: 3.2.0
  return: ?array
end note

note right of Repos::star
  Star the given repo for the authenticated user.

  since: 3.2.0
  return: string
end note

note right of Repos::unstar
  Unstar the given repo for the authenticated user.

  since: 3.2.0
  return: string
end note
 
@enduml

     ██╗ ██████╗██████╗
     ██║██╔════╝██╔══██╗
     ██║██║     ██████╔╝
██   ██║██║     ██╔══██╗
╚█████╔╝╚██████╗██████╔╝
 ╚════╝  ╚═════╝╚═════╝

Build with Joomla Component Builder