Package io.gitea.api

Class MiscellaneousApi


  • public class MiscellaneousApi
    extends java.lang.Object
    • Constructor Detail

      • MiscellaneousApi

        public MiscellaneousApi()
      • MiscellaneousApi

        public MiscellaneousApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getNodeInfo

        public NodeInfo getNodeInfo()
                             throws ApiException
        Returns the nodeinfo of the Gitea application
        Returns:
        NodeInfo
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getNodeInfoWithHttpInfo

        public ApiResponse<NodeInfo> getNodeInfoWithHttpInfo()
                                                      throws ApiException
        Returns the nodeinfo of the Gitea application
        Returns:
        ApiResponse<NodeInfo>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getNodeInfoAsync

        public com.squareup.okhttp.Call getNodeInfoAsync​(ApiCallback<NodeInfo> callback)
                                                  throws ApiException
        Returns the nodeinfo 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
      • getSigningKey

        public java.lang.String getSigningKey()
                                       throws ApiException
        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

        public ApiResponse<java.lang.String> getSigningKeyWithHttpInfo()
                                                                throws ApiException
        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 ApiException
        Get 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
      • getVersion

        public ServerVersion getVersion()
                                 throws ApiException
        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

        public ApiResponse<ServerVersion> getVersionWithHttpInfo()
                                                          throws ApiException
        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 ApiException
        Returns 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
      • renderMarkdown

        public java.lang.String renderMarkdown​(MarkdownOption body)
                                        throws ApiException
        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 ApiException
        Render 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 ApiException
        Render 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 ApiException
        Build call for renderMarkdownRaw
        Parameters:
        body - Request body to render (required)
        progressListener - Progress listener
        progressRequestListener - Progress request listener
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • renderMarkdownRaw

        public java.lang.String renderMarkdownRaw​(java.lang.String body)
                                           throws ApiException
        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 ApiException
        Render 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 ApiException
        Render 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