Files
portal/openapi/docs/DoorAPI.md
2026-06-22 11:38:29 +02:00

4.4 KiB

\DoorAPI

All URIs are relative to http://localhost

Method HTTP request Description
OpenDoorDoorClosePut Put /door/close Open Door
OpenDoorDoorOpenPut Put /door/open Open Door
TestAccessDoorTestPost Post /door/test Test Access

OpenDoorDoorClosePut

interface{} OpenDoorDoorClosePut(ctx).Execute()

Open Door

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

interface{}

Authorization

OAuth2PasswordBearer

HTTP request headers

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

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

OpenDoorDoorOpenPut

interface{} OpenDoorDoorOpenPut(ctx).Execute()

Open Door

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

interface{}

Authorization

OAuth2PasswordBearer

HTTP request headers

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

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

TestAccessDoorTestPost

interface{} TestAccessDoorTestPost(ctx).Input(input).Execute()

Test Access

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	input := "input_example" // string | 

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

Path Parameters

Other Parameters

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

Name Type Description Notes
input string

Return type

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]