Skip to content

Latest commit

 

History

History
68 lines (43 loc) · 1.44 KB

DefaultAPI.md

File metadata and controls

68 lines (43 loc) · 1.44 KB

\DefaultAPI

All URIs are relative to https://api.aptible.com

Method HTTP request Description
GetRoot Get / show home

GetRoot

GetRoot200Response GetRoot(ctx).Execute()

show home

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/aptible/aptible-api-go/aptibleapi"
)

func main() {

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

GetRoot200Response

Authorization

token

HTTP request headers

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

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