[api] chore: update api
This commit is contained in:
@@ -4,15 +4,15 @@ All URIs are relative to *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**OpenDoorDoorClosePut**](DoorAPI.md#OpenDoorDoorClosePut) | **Put** /door/close | Open Door
|
||||
[**OpenDoorDoorOpenPut**](DoorAPI.md#OpenDoorDoorOpenPut) | **Put** /door/open | Open Door
|
||||
[**TestAccessDoorTestPost**](DoorAPI.md#TestAccessDoorTestPost) | **Post** /door/test | Test Access
|
||||
[**OpenDoorApiV1DoorClosePut**](DoorAPI.md#OpenDoorApiV1DoorClosePut) | **Put** /api/v1/door/close | Open Door
|
||||
[**OpenDoorApiV1DoorOpenPut**](DoorAPI.md#OpenDoorApiV1DoorOpenPut) | **Put** /api/v1/door/open | Open Door
|
||||
[**TestAccessApiV1DoorTestPost**](DoorAPI.md#TestAccessApiV1DoorTestPost) | **Post** /api/v1/door/test | Test Access
|
||||
|
||||
|
||||
|
||||
## OpenDoorDoorClosePut
|
||||
## OpenDoorApiV1DoorClosePut
|
||||
|
||||
> interface{} OpenDoorDoorClosePut(ctx).Execute()
|
||||
> interface{} OpenDoorApiV1DoorClosePut(ctx).Execute()
|
||||
|
||||
Open Door
|
||||
|
||||
@@ -32,13 +32,13 @@ func main() {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.DoorAPI.OpenDoorDoorClosePut(context.Background()).Execute()
|
||||
resp, r, err := apiClient.DoorAPI.OpenDoorApiV1DoorClosePut(context.Background()).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `DoorAPI.OpenDoorDoorClosePut``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `DoorAPI.OpenDoorApiV1DoorClosePut``: %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)
|
||||
// response from `OpenDoorApiV1DoorClosePut`: interface{}
|
||||
fmt.Fprintf(os.Stdout, "Response from `DoorAPI.OpenDoorApiV1DoorClosePut`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
@@ -48,7 +48,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiOpenDoorDoorClosePutRequest struct via the builder pattern
|
||||
Other parameters are passed through a pointer to a apiOpenDoorApiV1DoorClosePutRequest struct via the builder pattern
|
||||
|
||||
|
||||
### Return type
|
||||
@@ -69,9 +69,9 @@ Other parameters are passed through a pointer to a apiOpenDoorDoorClosePutReques
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## OpenDoorDoorOpenPut
|
||||
## OpenDoorApiV1DoorOpenPut
|
||||
|
||||
> interface{} OpenDoorDoorOpenPut(ctx).Execute()
|
||||
> interface{} OpenDoorApiV1DoorOpenPut(ctx).Execute()
|
||||
|
||||
Open Door
|
||||
|
||||
@@ -91,13 +91,13 @@ func main() {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.DoorAPI.OpenDoorDoorOpenPut(context.Background()).Execute()
|
||||
resp, r, err := apiClient.DoorAPI.OpenDoorApiV1DoorOpenPut(context.Background()).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `DoorAPI.OpenDoorDoorOpenPut``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `DoorAPI.OpenDoorApiV1DoorOpenPut``: %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)
|
||||
// response from `OpenDoorApiV1DoorOpenPut`: interface{}
|
||||
fmt.Fprintf(os.Stdout, "Response from `DoorAPI.OpenDoorApiV1DoorOpenPut`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
@@ -107,7 +107,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiOpenDoorDoorOpenPutRequest struct via the builder pattern
|
||||
Other parameters are passed through a pointer to a apiOpenDoorApiV1DoorOpenPutRequest struct via the builder pattern
|
||||
|
||||
|
||||
### Return type
|
||||
@@ -128,9 +128,9 @@ Other parameters are passed through a pointer to a apiOpenDoorDoorOpenPutRequest
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## TestAccessDoorTestPost
|
||||
## TestAccessApiV1DoorTestPost
|
||||
|
||||
> interface{} TestAccessDoorTestPost(ctx).Input(input).Execute()
|
||||
> interface{} TestAccessApiV1DoorTestPost(ctx).Input(input).Execute()
|
||||
|
||||
Test Access
|
||||
|
||||
@@ -151,13 +151,13 @@ func main() {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.DoorAPI.TestAccessDoorTestPost(context.Background()).Input(input).Execute()
|
||||
resp, r, err := apiClient.DoorAPI.TestAccessApiV1DoorTestPost(context.Background()).Input(input).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `DoorAPI.TestAccessDoorTestPost``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `DoorAPI.TestAccessApiV1DoorTestPost``: %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)
|
||||
// response from `TestAccessApiV1DoorTestPost`: interface{}
|
||||
fmt.Fprintf(os.Stdout, "Response from `DoorAPI.TestAccessApiV1DoorTestPost`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
@@ -167,7 +167,7 @@ func main() {
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiTestAccessDoorTestPostRequest struct via the builder pattern
|
||||
Other parameters are passed through a pointer to a apiTestAccessApiV1DoorTestPostRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
|
||||
Reference in New Issue
Block a user