Skip to content

Latest commit

 

History

History
130 lines (81 loc) · 2.98 KB

SystemServiceApi.md

File metadata and controls

130 lines (81 loc) · 2.98 KB

\SystemServiceApi

All URIs are relative to http://api.madana.io/rest

Method HTTP request Description
GetAllObjects Get /system/health
GetApplication2 Get /system/usage Return the current application usage.

GetAllObjects

*os.File GetAllObjects(ctx).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.SystemServiceApi.GetAllObjects(context.Background()).Execute()
    if err.Error() != "" {
        fmt.Fprintf(os.Stderr, "Error when calling `SystemServiceApi.GetAllObjects``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GetAllObjects`: *os.File
    fmt.Fprintf(os.Stdout, "Response from `SystemServiceApi.GetAllObjects`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetAllObjectsRequest struct via the builder pattern

Return type

*os.File

Authorization

No authorization required

HTTP request headers

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

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

GetApplication2

map[string]map[string]interface{} GetApplication2(ctx).Execute()

Return the current application usage.

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.SystemServiceApi.GetApplication2(context.Background()).Execute()
    if err.Error() != "" {
        fmt.Fprintf(os.Stderr, "Error when calling `SystemServiceApi.GetApplication2``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GetApplication2`: map[string]map[string]interface{}
    fmt.Fprintf(os.Stdout, "Response from `SystemServiceApi.GetApplication2`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetApplication2Request struct via the builder pattern

Return type

map[string]map[string]interface{}

Authorization

No authorization required

HTTP request headers

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

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