TagsApi

interface TagsApi

Author

sunlulu.tomato

Functions

Link copied to clipboard
@POST(value = "projects/{id}/repository/tags")
abstract suspend fun createNewTag(@Path(value = "id") id: String, @Query(value = "tag_name") tagName: String, @Query(value = "ref") ref: String, @Query(value = "message") message: String? = null): Result<Tag>
Link copied to clipboard
@DELETE(value = "projects/{id}/repository/tags/{tag_name}")
abstract suspend fun deleteTag(@Path(value = "id") id: String, @Path(value = "tag_name") tagName: String): Result<Unit>
Link copied to clipboard
@GET(value = "projects/{id}/repository/tags/{tag_name}")
abstract suspend fun getSingleRepositoryTag(@Path(value = "id") id: String, @Path(value = "tag_name") tagName: String): Result<Tag>
Link copied to clipboard
@GET(value = "projects/{id}/repository/tags/{tag_name}/signature")
abstract suspend fun getX509SignatureOfTag(@Path(value = "id") id: String, @Path(value = "tag_name") tagName: String): Result<X509Signature>
Link copied to clipboard
@GET(value = "projects/{id}/repository/tags")
abstract suspend fun listRepositoryTags(@Path(value = "id") id: String, @Query(value = "order_by") orderBy: String? = null, @Query(value = "sort") sort: String? = null, @Query(value = "search") search: String? = null): Result<List<Tag>>