mirror of
https://github.com/avency/Gitea.git
synced 2025-10-29 18:52:33 +01:00
feat: Change endpoint calls
Change the endpoint call so that there is an autocompletion.
This commit is contained in:
@ -53,7 +53,10 @@ $giteaClient = new Avency\Gitea\Client(
|
||||
// - - - - -
|
||||
|
||||
// Get a single repository
|
||||
$repository = $giteaClient->api('repositories')->get('owner', 'repoName');
|
||||
$repository = $giteaClient->repositories()->get('owner', 'repoName');
|
||||
|
||||
// Get version
|
||||
$repository = $giteaClient->miscellaneous()->version();
|
||||
```
|
||||
|
||||
## Versioning
|
||||
|
||||
Reference in New Issue
Block a user