udpate openapi spec
This commit is contained in:
@@ -4,17 +4,18 @@ All URIs are relative to *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**OpenDoorApiV1DoorClosePut**](DoorAPI.md#OpenDoorApiV1DoorClosePut) | **Put** /api/v1/door/close | Open Door
|
||||
[**CloseDoorApiV1DoorClosePut**](DoorAPI.md#CloseDoorApiV1DoorClosePut) | **Put** /api/v1/door/close | Close Door
|
||||
[**IsDoorOpenApiV1DoorStatusPut**](DoorAPI.md#IsDoorOpenApiV1DoorStatusPut) | **Put** /api/v1/door/status | Is Door Open
|
||||
[**OpenDoorApiV1DoorOpenPut**](DoorAPI.md#OpenDoorApiV1DoorOpenPut) | **Put** /api/v1/door/open | Open Door
|
||||
[**TestAccessApiV1DoorTestPost**](DoorAPI.md#TestAccessApiV1DoorTestPost) | **Post** /api/v1/door/test | Test Access
|
||||
|
||||
|
||||
|
||||
## OpenDoorApiV1DoorClosePut
|
||||
## CloseDoorApiV1DoorClosePut
|
||||
|
||||
> interface{} OpenDoorApiV1DoorClosePut(ctx).Execute()
|
||||
> interface{} CloseDoorApiV1DoorClosePut(ctx).Execute()
|
||||
|
||||
Open Door
|
||||
Close Door
|
||||
|
||||
### Example
|
||||
|
||||
@@ -32,13 +33,13 @@ func main() {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.DoorAPI.OpenDoorApiV1DoorClosePut(context.Background()).Execute()
|
||||
resp, r, err := apiClient.DoorAPI.CloseDoorApiV1DoorClosePut(context.Background()).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `DoorAPI.OpenDoorApiV1DoorClosePut``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `DoorAPI.CloseDoorApiV1DoorClosePut``: %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)
|
||||
// response from `CloseDoorApiV1DoorClosePut`: interface{}
|
||||
fmt.Fprintf(os.Stdout, "Response from `DoorAPI.CloseDoorApiV1DoorClosePut`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
@@ -48,7 +49,66 @@ This endpoint does not need any parameter.
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiOpenDoorApiV1DoorClosePutRequest struct via the builder pattern
|
||||
Other parameters are passed through a pointer to a apiCloseDoorApiV1DoorClosePutRequest struct via the builder pattern
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**interface{}**
|
||||
|
||||
### Authorization
|
||||
|
||||
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||
[[Back to Model list]](../README.md#documentation-for-models)
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## IsDoorOpenApiV1DoorStatusPut
|
||||
|
||||
> interface{} IsDoorOpenApiV1DoorStatusPut(ctx).Execute()
|
||||
|
||||
Is Door Open
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
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.IsDoorOpenApiV1DoorStatusPut(context.Background()).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `DoorAPI.IsDoorOpenApiV1DoorStatusPut``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `IsDoorOpenApiV1DoorStatusPut`: interface{}
|
||||
fmt.Fprintf(os.Stdout, "Response from `DoorAPI.IsDoorOpenApiV1DoorStatusPut`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiIsDoorOpenApiV1DoorStatusPutRequest struct via the builder pattern
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
Reference in New Issue
Block a user