4.5 KiB
\DoorAPI
All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| OpenDoorApiV1DoorClosePut | Put /api/v1/door/close | Open Door |
| OpenDoorApiV1DoorOpenPut | Put /api/v1/door/open | Open Door |
| TestAccessApiV1DoorTestPost | Post /api/v1/door/test | Test Access |
OpenDoorApiV1DoorClosePut
interface{} OpenDoorApiV1DoorClosePut(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.OpenDoorApiV1DoorClosePut(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DoorAPI.OpenDoorApiV1DoorClosePut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `OpenDoorApiV1DoorClosePut`: interface{}
fmt.Fprintf(os.Stdout, "Response from `DoorAPI.OpenDoorApiV1DoorClosePut`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiOpenDoorApiV1DoorClosePutRequest struct via the builder pattern
Return type
interface{}
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OpenDoorApiV1DoorOpenPut
interface{} OpenDoorApiV1DoorOpenPut(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.OpenDoorApiV1DoorOpenPut(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DoorAPI.OpenDoorApiV1DoorOpenPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `OpenDoorApiV1DoorOpenPut`: interface{}
fmt.Fprintf(os.Stdout, "Response from `DoorAPI.OpenDoorApiV1DoorOpenPut`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiOpenDoorApiV1DoorOpenPutRequest struct via the builder pattern
Return type
interface{}
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TestAccessApiV1DoorTestPost
interface{} TestAccessApiV1DoorTestPost(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.TestAccessApiV1DoorTestPost(context.Background()).Input(input).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DoorAPI.TestAccessApiV1DoorTestPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `TestAccessApiV1DoorTestPost`: interface{}
fmt.Fprintf(os.Stdout, "Response from `DoorAPI.TestAccessApiV1DoorTestPost`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiTestAccessApiV1DoorTestPostRequest 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]