gitea-rs/crates/gitea-client/docs/PackageApi.md
kjuulh e78d07db33
feat: find another name
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-09-23 22:29:11 +02:00

5.1 KiB

\PackageApi

All URIs are relative to /api/v1

Method HTTP request Description
delete_package DELETE /packages/{owner}/{type}/{name}/{version} Delete a package
get_package GET /packages/{owner}/{type}/{name}/{version} Gets a package
list_package_files GET /packages/{owner}/{type}/{name}/{version}/files Gets all files of a package
list_packages GET /packages/{owner} Gets all packages of an owner

delete_package

delete_package(owner, r#type, name, version) Delete a package

Parameters

Name Type Description Required Notes
owner String owner of the package [required]
r#type String type of the package [required]
name String name of the package [required]
version String version of the package [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_package

models::Package get_package(owner, r#type, name, version) Gets a package

Parameters

Name Type Description Required Notes
owner String owner of the package [required]
r#type String type of the package [required]
name String name of the package [required]
version String version of the package [required]

Return type

models::Package

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_package_files

Vecmodels::PackageFile list_package_files(owner, r#type, name, version) Gets all files of a package

Parameters

Name Type Description Required Notes
owner String owner of the package [required]
r#type String type of the package [required]
name String name of the package [required]
version String version of the package [required]

Return type

Vecmodels::PackageFile

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_packages

Vecmodels::Package list_packages(owner, page, limit, r#type, q) Gets all packages of an owner

Parameters

Name Type Description Required Notes
owner String owner of the packages [required]
page Option<i32> page number of results to return (1-based)
limit Option<i32> page size of results
r#type Option<String> package type filter
q Option<String> name filter

Return type

Vecmodels::Package

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]