Package io.gitea.api
Class MiscellaneousApi
java.lang.Object
io.gitea.api.MiscellaneousApi
public class MiscellaneousApi
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description MiscellaneousApi()MiscellaneousApi(ApiClient apiClient) -
Method Summary
Modifier and Type Method Description ApiClientgetApiClient()java.lang.StringgetSigningKey()Get default signing-key.gpgcom.squareup.okhttp.CallgetSigningKeyAsync(ApiCallback<java.lang.String> callback)Get default signing-key.gpg (asynchronously)com.squareup.okhttp.CallgetSigningKeyCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for getSigningKeyApiResponse<java.lang.String>getSigningKeyWithHttpInfo()Get default signing-key.gpgServerVersiongetVersion()Returns the version of the Gitea applicationcom.squareup.okhttp.CallgetVersionAsync(ApiCallback<ServerVersion> callback)Returns the version of the Gitea application (asynchronously)com.squareup.okhttp.CallgetVersionCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for getVersionApiResponse<ServerVersion>getVersionWithHttpInfo()Returns the version of the Gitea applicationjava.lang.StringrenderMarkdown(MarkdownOption body)Render a markdown document as HTMLcom.squareup.okhttp.CallrenderMarkdownAsync(MarkdownOption body, ApiCallback<java.lang.String> callback)Render a markdown document as HTML (asynchronously)com.squareup.okhttp.CallrenderMarkdownCall(MarkdownOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for renderMarkdownjava.lang.StringrenderMarkdownRaw(java.lang.String body)Render raw markdown as HTMLcom.squareup.okhttp.CallrenderMarkdownRawAsync(java.lang.String body, ApiCallback<java.lang.String> callback)Render raw markdown as HTML (asynchronously)com.squareup.okhttp.CallrenderMarkdownRawCall(java.lang.String body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for renderMarkdownRawApiResponse<java.lang.String>renderMarkdownRawWithHttpInfo(java.lang.String body)Render raw markdown as HTMLApiResponse<java.lang.String>renderMarkdownWithHttpInfo(MarkdownOption body)Render a markdown document as HTMLvoidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
MiscellaneousApi
public MiscellaneousApi() -
MiscellaneousApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getSigningKeyCall
public com.squareup.okhttp.Call getSigningKeyCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for getSigningKey- Parameters:
progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getSigningKey
Get default signing-key.gpg- Returns:
- String
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getSigningKeyWithHttpInfo
Get default signing-key.gpg- Returns:
- ApiResponse<String>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getSigningKeyAsync
public com.squareup.okhttp.Call getSigningKeyAsync(ApiCallback<java.lang.String> callback) throws ApiExceptionGet default signing-key.gpg (asynchronously)- Parameters:
callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
getVersionCall
public com.squareup.okhttp.Call getVersionCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for getVersion- Parameters:
progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getVersion
Returns the version of the Gitea application- Returns:
- ServerVersion
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getVersionWithHttpInfo
Returns the version of the Gitea application- Returns:
- ApiResponse<ServerVersion>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getVersionAsync
public com.squareup.okhttp.Call getVersionAsync(ApiCallback<ServerVersion> callback) throws ApiExceptionReturns the version of the Gitea application (asynchronously)- Parameters:
callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
renderMarkdownCall
public com.squareup.okhttp.Call renderMarkdownCall(MarkdownOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for renderMarkdown- Parameters:
body- (optional)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
renderMarkdown
Render a markdown document as HTML- Parameters:
body- (optional)- Returns:
- String
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
renderMarkdownWithHttpInfo
public ApiResponse<java.lang.String> renderMarkdownWithHttpInfo(MarkdownOption body) throws ApiExceptionRender a markdown document as HTML- Parameters:
body- (optional)- Returns:
- ApiResponse<String>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
renderMarkdownAsync
public com.squareup.okhttp.Call renderMarkdownAsync(MarkdownOption body, ApiCallback<java.lang.String> callback) throws ApiExceptionRender a markdown document as HTML (asynchronously)- Parameters:
body- (optional)callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
renderMarkdownRawCall
public com.squareup.okhttp.Call renderMarkdownRawCall(java.lang.String body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for renderMarkdownRaw- Parameters:
body- Request body to render (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
renderMarkdownRaw
Render raw markdown as HTML- Parameters:
body- Request body to render (required)- Returns:
- String
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
renderMarkdownRawWithHttpInfo
public ApiResponse<java.lang.String> renderMarkdownRawWithHttpInfo(java.lang.String body) throws ApiExceptionRender raw markdown as HTML- Parameters:
body- Request body to render (required)- Returns:
- ApiResponse<String>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
renderMarkdownRawAsync
public com.squareup.okhttp.Call renderMarkdownRawAsync(java.lang.String body, ApiCallback<java.lang.String> callback) throws ApiExceptionRender raw markdown as HTML (asynchronously)- Parameters:
body- Request body to render (required)callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-