Files
sdk/docs/SmartHTTPApi.md
zeekayandHanzo Dev b55332704a feat: Hanzo Cloud SDK for Kotlin (generated from OpenAPI v8.0.0)
Coroutine-native client covering the full Hanzo /v1 cloud surface, for JVM and
Android. Generated with openapi-generator kotlin (library=jvm-okhttp4,
useCoroutines=true). Coordinate: ai.hanzo:sdk. Base URL: https://api.hanzo.ai.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-25 07:10:32 -07:00

4.7 KiB

SmartHTTPApi

All URIs are relative to https://api.hanzo.ai

Method HTTP request Description
gitGitInfoRefs GET /v1/git/{org}/{repo}/info/refs Git smart-HTTP ref advertisement
gitGitReceivePack POST /v1/git/{org}/{repo}/git-receive-pack Git receive-pack (push)
gitGitUploadPack POST /v1/git/{org}/{repo}/git-upload-pack Git upload-pack (clone / fetch)

gitGitInfoRefs

java.io.File gitGitInfoRefs(org, repo, service)

Git smart-HTTP ref advertisement

The ref-advertisement phase. `?service=` selects git-upload-pack (fetch) or git-receive-pack (push).

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = SmartHTTPApi()
val org : kotlin.String = org_example // kotlin.String | 
val repo : kotlin.String = repo_example // kotlin.String | 
val service : kotlin.String = service_example // kotlin.String | 
try {
    val result : java.io.File = apiInstance.gitGitInfoRefs(org, repo, service)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling SmartHTTPApi#gitGitInfoRefs")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling SmartHTTPApi#gitGitInfoRefs")
    e.printStackTrace()
}

Parameters

| org | kotlin.String| | | | repo | kotlin.String| | |

Name Type Description Notes
service kotlin.String [enum: git-upload-pack, git-receive-pack]

Return type

java.io.File

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

gitGitReceivePack

java.io.File gitGitReceivePack(org, repo, body)

Git receive-pack (push)

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = SmartHTTPApi()
val org : kotlin.String = org_example // kotlin.String | 
val repo : kotlin.String = repo_example // kotlin.String | 
val body : java.io.File = BINARY_DATA_HERE // java.io.File | 
try {
    val result : java.io.File = apiInstance.gitGitReceivePack(org, repo, body)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling SmartHTTPApi#gitGitReceivePack")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling SmartHTTPApi#gitGitReceivePack")
    e.printStackTrace()
}

Parameters

| org | kotlin.String| | | | repo | kotlin.String| | |

Name Type Description Notes
body java.io.File

Return type

java.io.File

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

gitGitUploadPack

java.io.File gitGitUploadPack(org, repo, body)

Git upload-pack (clone / fetch)

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = SmartHTTPApi()
val org : kotlin.String = org_example // kotlin.String | 
val repo : kotlin.String = repo_example // kotlin.String | 
val body : java.io.File = BINARY_DATA_HERE // java.io.File | 
try {
    val result : java.io.File = apiInstance.gitGitUploadPack(org, repo, body)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling SmartHTTPApi#gitGitUploadPack")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling SmartHTTPApi#gitGitUploadPack")
    e.printStackTrace()
}

Parameters

| org | kotlin.String| | | | repo | kotlin.String| | |

Name Type Description Notes
body java.io.File

Return type

java.io.File

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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