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. |
*os.File GetAllObjects(ctx).Execute()
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)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetAllObjectsRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]map[string]interface{} GetApplication2(ctx).Execute()
Return the current application usage.
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)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetApplication2Request struct via the builder pattern
map[string]map[string]interface{}
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]