This commit is contained in:
2026-06-22 11:38:29 +02:00
commit 3d86f9603d
141 changed files with 77794 additions and 0 deletions

View File

@@ -0,0 +1,486 @@
# \AccessAuthAPI
All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**AddAccessauthAaPost**](AccessAuthAPI.md#AddAccessauthAaPost) | **Post** /aa/ | Add Accessauth
[**AssignAccessauthAaAssignGroupIdAaIdPut**](AccessAuthAPI.md#AssignAccessauthAaAssignGroupIdAaIdPut) | **Put** /aa/assign/{group_id}/{aa_id} | Assign Accessauth
[**ChangeAccessauthAaAaIdPatch**](AccessAuthAPI.md#ChangeAccessauthAaAaIdPatch) | **Patch** /aa/{aa_id} | Change Accessauth
[**DeleteAccessauthAaAaIdDelete**](AccessAuthAPI.md#DeleteAccessauthAaAaIdDelete) | **Delete** /aa/{aa_id} | Delete Accessauth
[**GetAllAccessauthsAaGet**](AccessAuthAPI.md#GetAllAccessauthsAaGet) | **Get** /aa/ | Get All Accessauths
[**GetOneAccessauthAaAaIdGet**](AccessAuthAPI.md#GetOneAccessauthAaAaIdGet) | **Get** /aa/{aa_id} | Get One Accessauth
[**UnassignAccessauthAaUnassignGroupIdAaIdPut**](AccessAuthAPI.md#UnassignAccessauthAaUnassignGroupIdAaIdPut) | **Put** /aa/unassign/{group_id}/{aa_id} | Unassign Accessauth
## AddAccessauthAaPost
> AccessAuthorizationResponse AddAccessauthAaPost(ctx).AccessAuthorizationCreate(accessAuthorizationCreate).Execute()
Add Accessauth
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
accessAuthorizationCreate := *openapiclient.NewAccessAuthorizationCreate("Name_example", false, []openapiclient.TimetableCreate{*openapiclient.NewTimetableCreate(int32(123), "Starttime_example", int32(123))}) // AccessAuthorizationCreate |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccessAuthAPI.AddAccessauthAaPost(context.Background()).AccessAuthorizationCreate(accessAuthorizationCreate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccessAuthAPI.AddAccessauthAaPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AddAccessauthAaPost`: AccessAuthorizationResponse
fmt.Fprintf(os.Stdout, "Response from `AccessAuthAPI.AddAccessauthAaPost`: %v\n", resp)
}
```
### Path Parameters
### Other Parameters
Other parameters are passed through a pointer to a apiAddAccessauthAaPostRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**accessAuthorizationCreate** | [**AccessAuthorizationCreate**](AccessAuthorizationCreate.md) | |
### Return type
[**AccessAuthorizationResponse**](AccessAuthorizationResponse.md)
### Authorization
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
### HTTP request headers
- **Content-Type**: application/json
- **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)
## AssignAccessauthAaAssignGroupIdAaIdPut
> GroupResponse AssignAccessauthAaAssignGroupIdAaIdPut(ctx, groupId, aaId).Execute()
Assign Accessauth
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
groupId := int32(56) // int32 |
aaId := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccessAuthAPI.AssignAccessauthAaAssignGroupIdAaIdPut(context.Background(), groupId, aaId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccessAuthAPI.AssignAccessauthAaAssignGroupIdAaIdPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AssignAccessauthAaAssignGroupIdAaIdPut`: GroupResponse
fmt.Fprintf(os.Stdout, "Response from `AccessAuthAPI.AssignAccessauthAaAssignGroupIdAaIdPut`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**groupId** | **int32** | |
**aaId** | **int32** | |
### Other Parameters
Other parameters are passed through a pointer to a apiAssignAccessauthAaAssignGroupIdAaIdPutRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
### Return type
[**GroupResponse**](GroupResponse.md)
### 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)
## ChangeAccessauthAaAaIdPatch
> AccessAuthorizationResponse ChangeAccessauthAaAaIdPatch(ctx, aaId).AccessAuthorizationUpdate(accessAuthorizationUpdate).Execute()
Change Accessauth
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
aaId := int32(56) // int32 |
accessAuthorizationUpdate := *openapiclient.NewAccessAuthorizationUpdate() // AccessAuthorizationUpdate |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccessAuthAPI.ChangeAccessauthAaAaIdPatch(context.Background(), aaId).AccessAuthorizationUpdate(accessAuthorizationUpdate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccessAuthAPI.ChangeAccessauthAaAaIdPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ChangeAccessauthAaAaIdPatch`: AccessAuthorizationResponse
fmt.Fprintf(os.Stdout, "Response from `AccessAuthAPI.ChangeAccessauthAaAaIdPatch`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**aaId** | **int32** | |
### Other Parameters
Other parameters are passed through a pointer to a apiChangeAccessauthAaAaIdPatchRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**accessAuthorizationUpdate** | [**AccessAuthorizationUpdate**](AccessAuthorizationUpdate.md) | |
### Return type
[**AccessAuthorizationResponse**](AccessAuthorizationResponse.md)
### Authorization
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
### HTTP request headers
- **Content-Type**: application/json
- **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)
## DeleteAccessauthAaAaIdDelete
> interface{} DeleteAccessauthAaAaIdDelete(ctx, aaId).Execute()
Delete Accessauth
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
aaId := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccessAuthAPI.DeleteAccessauthAaAaIdDelete(context.Background(), aaId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccessAuthAPI.DeleteAccessauthAaAaIdDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteAccessauthAaAaIdDelete`: interface{}
fmt.Fprintf(os.Stdout, "Response from `AccessAuthAPI.DeleteAccessauthAaAaIdDelete`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**aaId** | **int32** | |
### Other Parameters
Other parameters are passed through a pointer to a apiDeleteAccessauthAaAaIdDeleteRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
### 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)
## GetAllAccessauthsAaGet
> []AccessAuthorizationResponse GetAllAccessauthsAaGet(ctx).Execute()
Get All Accessauths
### 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.AccessAuthAPI.GetAllAccessauthsAaGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccessAuthAPI.GetAllAccessauthsAaGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAllAccessauthsAaGet`: []AccessAuthorizationResponse
fmt.Fprintf(os.Stdout, "Response from `AccessAuthAPI.GetAllAccessauthsAaGet`: %v\n", resp)
}
```
### Path Parameters
This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiGetAllAccessauthsAaGetRequest struct via the builder pattern
### Return type
[**[]AccessAuthorizationResponse**](AccessAuthorizationResponse.md)
### 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)
## GetOneAccessauthAaAaIdGet
> AccessAuthorizationResponse GetOneAccessauthAaAaIdGet(ctx, aaId).Execute()
Get One Accessauth
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
aaId := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccessAuthAPI.GetOneAccessauthAaAaIdGet(context.Background(), aaId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccessAuthAPI.GetOneAccessauthAaAaIdGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOneAccessauthAaAaIdGet`: AccessAuthorizationResponse
fmt.Fprintf(os.Stdout, "Response from `AccessAuthAPI.GetOneAccessauthAaAaIdGet`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**aaId** | **int32** | |
### Other Parameters
Other parameters are passed through a pointer to a apiGetOneAccessauthAaAaIdGetRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
### Return type
[**AccessAuthorizationResponse**](AccessAuthorizationResponse.md)
### 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)
## UnassignAccessauthAaUnassignGroupIdAaIdPut
> GroupResponse UnassignAccessauthAaUnassignGroupIdAaIdPut(ctx, groupId, aaId).Execute()
Unassign Accessauth
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
groupId := int32(56) // int32 |
aaId := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AccessAuthAPI.UnassignAccessauthAaUnassignGroupIdAaIdPut(context.Background(), groupId, aaId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccessAuthAPI.UnassignAccessauthAaUnassignGroupIdAaIdPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UnassignAccessauthAaUnassignGroupIdAaIdPut`: GroupResponse
fmt.Fprintf(os.Stdout, "Response from `AccessAuthAPI.UnassignAccessauthAaUnassignGroupIdAaIdPut`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**groupId** | **int32** | |
**aaId** | **int32** | |
### Other Parameters
Other parameters are passed through a pointer to a apiUnassignAccessauthAaUnassignGroupIdAaIdPutRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
### Return type
[**GroupResponse**](GroupResponse.md)
### 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)

View File

@@ -0,0 +1,93 @@
# AccessAuthorizationCreate
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**IsActive** | **bool** | |
**Timetables** | [**[]TimetableCreate**](TimetableCreate.md) | |
## Methods
### NewAccessAuthorizationCreate
`func NewAccessAuthorizationCreate(name string, isActive bool, timetables []TimetableCreate, ) *AccessAuthorizationCreate`
NewAccessAuthorizationCreate instantiates a new AccessAuthorizationCreate object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewAccessAuthorizationCreateWithDefaults
`func NewAccessAuthorizationCreateWithDefaults() *AccessAuthorizationCreate`
NewAccessAuthorizationCreateWithDefaults instantiates a new AccessAuthorizationCreate object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetName
`func (o *AccessAuthorizationCreate) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *AccessAuthorizationCreate) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *AccessAuthorizationCreate) SetName(v string)`
SetName sets Name field to given value.
### GetIsActive
`func (o *AccessAuthorizationCreate) GetIsActive() bool`
GetIsActive returns the IsActive field if non-nil, zero value otherwise.
### GetIsActiveOk
`func (o *AccessAuthorizationCreate) GetIsActiveOk() (*bool, bool)`
GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetIsActive
`func (o *AccessAuthorizationCreate) SetIsActive(v bool)`
SetIsActive sets IsActive field to given value.
### GetTimetables
`func (o *AccessAuthorizationCreate) GetTimetables() []TimetableCreate`
GetTimetables returns the Timetables field if non-nil, zero value otherwise.
### GetTimetablesOk
`func (o *AccessAuthorizationCreate) GetTimetablesOk() (*[]TimetableCreate, bool)`
GetTimetablesOk returns a tuple with the Timetables field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTimetables
`func (o *AccessAuthorizationCreate) SetTimetables(v []TimetableCreate)`
SetTimetables sets Timetables field to given value.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -0,0 +1,108 @@
# AccessAuthorizationDB
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**IsActive** | **bool** | |
**Id** | Pointer to **NullableInt32** | | [optional]
## Methods
### NewAccessAuthorizationDB
`func NewAccessAuthorizationDB(name string, isActive bool, ) *AccessAuthorizationDB`
NewAccessAuthorizationDB instantiates a new AccessAuthorizationDB object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewAccessAuthorizationDBWithDefaults
`func NewAccessAuthorizationDBWithDefaults() *AccessAuthorizationDB`
NewAccessAuthorizationDBWithDefaults instantiates a new AccessAuthorizationDB object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetName
`func (o *AccessAuthorizationDB) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *AccessAuthorizationDB) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *AccessAuthorizationDB) SetName(v string)`
SetName sets Name field to given value.
### GetIsActive
`func (o *AccessAuthorizationDB) GetIsActive() bool`
GetIsActive returns the IsActive field if non-nil, zero value otherwise.
### GetIsActiveOk
`func (o *AccessAuthorizationDB) GetIsActiveOk() (*bool, bool)`
GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetIsActive
`func (o *AccessAuthorizationDB) SetIsActive(v bool)`
SetIsActive sets IsActive field to given value.
### GetId
`func (o *AccessAuthorizationDB) GetId() int32`
GetId returns the Id field if non-nil, zero value otherwise.
### GetIdOk
`func (o *AccessAuthorizationDB) GetIdOk() (*int32, bool)`
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetId
`func (o *AccessAuthorizationDB) SetId(v int32)`
SetId sets Id field to given value.
### HasId
`func (o *AccessAuthorizationDB) HasId() bool`
HasId returns a boolean if a field has been set.
### SetIdNil
`func (o *AccessAuthorizationDB) SetIdNil(b bool)`
SetIdNil sets the value for Id to be an explicit nil
### UnsetId
`func (o *AccessAuthorizationDB) UnsetId()`
UnsetId ensures that no value is present for Id, not even an explicit nil
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -0,0 +1,135 @@
# AccessAuthorizationResponse
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**IsActive** | **bool** | |
**Id** | **int32** | |
**Timetables** | [**[]Timetable**](Timetable.md) | |
**Groups** | [**[]GroupDB**](GroupDB.md) | |
## Methods
### NewAccessAuthorizationResponse
`func NewAccessAuthorizationResponse(name string, isActive bool, id int32, timetables []Timetable, groups []GroupDB, ) *AccessAuthorizationResponse`
NewAccessAuthorizationResponse instantiates a new AccessAuthorizationResponse object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewAccessAuthorizationResponseWithDefaults
`func NewAccessAuthorizationResponseWithDefaults() *AccessAuthorizationResponse`
NewAccessAuthorizationResponseWithDefaults instantiates a new AccessAuthorizationResponse object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetName
`func (o *AccessAuthorizationResponse) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *AccessAuthorizationResponse) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *AccessAuthorizationResponse) SetName(v string)`
SetName sets Name field to given value.
### GetIsActive
`func (o *AccessAuthorizationResponse) GetIsActive() bool`
GetIsActive returns the IsActive field if non-nil, zero value otherwise.
### GetIsActiveOk
`func (o *AccessAuthorizationResponse) GetIsActiveOk() (*bool, bool)`
GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetIsActive
`func (o *AccessAuthorizationResponse) SetIsActive(v bool)`
SetIsActive sets IsActive field to given value.
### GetId
`func (o *AccessAuthorizationResponse) GetId() int32`
GetId returns the Id field if non-nil, zero value otherwise.
### GetIdOk
`func (o *AccessAuthorizationResponse) GetIdOk() (*int32, bool)`
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetId
`func (o *AccessAuthorizationResponse) SetId(v int32)`
SetId sets Id field to given value.
### GetTimetables
`func (o *AccessAuthorizationResponse) GetTimetables() []Timetable`
GetTimetables returns the Timetables field if non-nil, zero value otherwise.
### GetTimetablesOk
`func (o *AccessAuthorizationResponse) GetTimetablesOk() (*[]Timetable, bool)`
GetTimetablesOk returns a tuple with the Timetables field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTimetables
`func (o *AccessAuthorizationResponse) SetTimetables(v []Timetable)`
SetTimetables sets Timetables field to given value.
### GetGroups
`func (o *AccessAuthorizationResponse) GetGroups() []GroupDB`
GetGroups returns the Groups field if non-nil, zero value otherwise.
### GetGroupsOk
`func (o *AccessAuthorizationResponse) GetGroupsOk() (*[]GroupDB, bool)`
GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetGroups
`func (o *AccessAuthorizationResponse) SetGroups(v []GroupDB)`
SetGroups sets Groups field to given value.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -0,0 +1,138 @@
# AccessAuthorizationUpdate
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **NullableString** | | [optional]
**IsActive** | Pointer to **NullableBool** | | [optional]
**Timetables** | Pointer to [**[]TimetableCreate**](TimetableCreate.md) | | [optional]
## Methods
### NewAccessAuthorizationUpdate
`func NewAccessAuthorizationUpdate() *AccessAuthorizationUpdate`
NewAccessAuthorizationUpdate instantiates a new AccessAuthorizationUpdate object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewAccessAuthorizationUpdateWithDefaults
`func NewAccessAuthorizationUpdateWithDefaults() *AccessAuthorizationUpdate`
NewAccessAuthorizationUpdateWithDefaults instantiates a new AccessAuthorizationUpdate object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetName
`func (o *AccessAuthorizationUpdate) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *AccessAuthorizationUpdate) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *AccessAuthorizationUpdate) SetName(v string)`
SetName sets Name field to given value.
### HasName
`func (o *AccessAuthorizationUpdate) HasName() bool`
HasName returns a boolean if a field has been set.
### SetNameNil
`func (o *AccessAuthorizationUpdate) SetNameNil(b bool)`
SetNameNil sets the value for Name to be an explicit nil
### UnsetName
`func (o *AccessAuthorizationUpdate) UnsetName()`
UnsetName ensures that no value is present for Name, not even an explicit nil
### GetIsActive
`func (o *AccessAuthorizationUpdate) GetIsActive() bool`
GetIsActive returns the IsActive field if non-nil, zero value otherwise.
### GetIsActiveOk
`func (o *AccessAuthorizationUpdate) GetIsActiveOk() (*bool, bool)`
GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetIsActive
`func (o *AccessAuthorizationUpdate) SetIsActive(v bool)`
SetIsActive sets IsActive field to given value.
### HasIsActive
`func (o *AccessAuthorizationUpdate) HasIsActive() bool`
HasIsActive returns a boolean if a field has been set.
### SetIsActiveNil
`func (o *AccessAuthorizationUpdate) SetIsActiveNil(b bool)`
SetIsActiveNil sets the value for IsActive to be an explicit nil
### UnsetIsActive
`func (o *AccessAuthorizationUpdate) UnsetIsActive()`
UnsetIsActive ensures that no value is present for IsActive, not even an explicit nil
### GetTimetables
`func (o *AccessAuthorizationUpdate) GetTimetables() []TimetableCreate`
GetTimetables returns the Timetables field if non-nil, zero value otherwise.
### GetTimetablesOk
`func (o *AccessAuthorizationUpdate) GetTimetablesOk() (*[]TimetableCreate, bool)`
GetTimetablesOk returns a tuple with the Timetables field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTimetables
`func (o *AccessAuthorizationUpdate) SetTimetables(v []TimetableCreate)`
SetTimetables sets Timetables field to given value.
### HasTimetables
`func (o *AccessAuthorizationUpdate) HasTimetables() bool`
HasTimetables returns a boolean if a field has been set.
### SetTimetablesNil
`func (o *AccessAuthorizationUpdate) SetTimetablesNil(b bool)`
SetTimetablesNil sets the value for Timetables to be an explicit nil
### UnsetTimetables
`func (o *AccessAuthorizationUpdate) UnsetTimetables()`
UnsetTimetables ensures that no value is present for Timetables, not even an explicit nil
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

123
openapi/docs/Card.md Normal file
View File

@@ -0,0 +1,123 @@
# Card
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | Pointer to **NullableInt32** | | [optional]
**Uuid** | **string** | |
**GroupId** | Pointer to **NullableInt32** | | [optional]
## Methods
### NewCard
`func NewCard(uuid string, ) *Card`
NewCard instantiates a new Card object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewCardWithDefaults
`func NewCardWithDefaults() *Card`
NewCardWithDefaults instantiates a new Card object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetId
`func (o *Card) GetId() int32`
GetId returns the Id field if non-nil, zero value otherwise.
### GetIdOk
`func (o *Card) GetIdOk() (*int32, bool)`
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetId
`func (o *Card) SetId(v int32)`
SetId sets Id field to given value.
### HasId
`func (o *Card) HasId() bool`
HasId returns a boolean if a field has been set.
### SetIdNil
`func (o *Card) SetIdNil(b bool)`
SetIdNil sets the value for Id to be an explicit nil
### UnsetId
`func (o *Card) UnsetId()`
UnsetId ensures that no value is present for Id, not even an explicit nil
### GetUuid
`func (o *Card) GetUuid() string`
GetUuid returns the Uuid field if non-nil, zero value otherwise.
### GetUuidOk
`func (o *Card) GetUuidOk() (*string, bool)`
GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetUuid
`func (o *Card) SetUuid(v string)`
SetUuid sets Uuid field to given value.
### GetGroupId
`func (o *Card) GetGroupId() int32`
GetGroupId returns the GroupId field if non-nil, zero value otherwise.
### GetGroupIdOk
`func (o *Card) GetGroupIdOk() (*int32, bool)`
GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetGroupId
`func (o *Card) SetGroupId(v int32)`
SetGroupId sets GroupId field to given value.
### HasGroupId
`func (o *Card) HasGroupId() bool`
HasGroupId returns a boolean if a field has been set.
### SetGroupIdNil
`func (o *Card) SetGroupIdNil(b bool)`
SetGroupIdNil sets the value for GroupId to be an explicit nil
### UnsetGroupId
`func (o *Card) UnsetGroupId()`
UnsetGroupId ensures that no value is present for GroupId, not even an explicit nil
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

206
openapi/docs/CardAPI.md Normal file
View File

@@ -0,0 +1,206 @@
# \CardAPI
All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**AddCardCardsGroupIdPost**](CardAPI.md#AddCardCardsGroupIdPost) | **Post** /cards/{group_id} | Add Card
[**DelCardCardsDeleteGet**](CardAPI.md#DelCardCardsDeleteGet) | **Get** /cards/delete | Del Card
[**GetCardsCardsGroupIdGet**](CardAPI.md#GetCardsCardsGroupIdGet) | **Get** /cards/{group_id} | Get Cards
## AddCardCardsGroupIdPost
> Card AddCardCardsGroupIdPost(ctx, groupId).Execute()
Add Card
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
groupId := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CardAPI.AddCardCardsGroupIdPost(context.Background(), groupId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.AddCardCardsGroupIdPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AddCardCardsGroupIdPost`: Card
fmt.Fprintf(os.Stdout, "Response from `CardAPI.AddCardCardsGroupIdPost`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**groupId** | **int32** | |
### Other Parameters
Other parameters are passed through a pointer to a apiAddCardCardsGroupIdPostRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
### Return type
[**Card**](Card.md)
### 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)
## DelCardCardsDeleteGet
> interface{} DelCardCardsDeleteGet(ctx).Execute()
Del Card
### 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.CardAPI.DelCardCardsDeleteGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.DelCardCardsDeleteGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DelCardCardsDeleteGet`: interface{}
fmt.Fprintf(os.Stdout, "Response from `CardAPI.DelCardCardsDeleteGet`: %v\n", resp)
}
```
### Path Parameters
This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiDelCardCardsDeleteGetRequest 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)
## GetCardsCardsGroupIdGet
> []Card GetCardsCardsGroupIdGet(ctx, groupId).Execute()
Get Cards
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
groupId := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CardAPI.GetCardsCardsGroupIdGet(context.Background(), groupId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.GetCardsCardsGroupIdGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCardsCardsGroupIdGet`: []Card
fmt.Fprintf(os.Stdout, "Response from `CardAPI.GetCardsCardsGroupIdGet`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**groupId** | **int32** | |
### Other Parameters
Other parameters are passed through a pointer to a apiGetCardsCardsGroupIdGetRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
### Return type
[**[]Card**](Card.md)
### 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)

View File

@@ -0,0 +1,211 @@
# \DebugItemsMaybeDontShowThisInUIAPI
All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**AddCardManuallyDebugAddcardGroupidCardKeyGet**](DebugItemsMaybeDontShowThisInUIAPI.md#AddCardManuallyDebugAddcardGroupidCardKeyGet) | **Get** /debug/addcard/{groupid}/{card_key} | Add Card Manually
[**ListAllCardsDebugGetcardsPut**](DebugItemsMaybeDontShowThisInUIAPI.md#ListAllCardsDebugGetcardsPut) | **Put** /debug/getcards | List All Cards
[**RemoveCardManuallyDebugRmcardCardKeyGet**](DebugItemsMaybeDontShowThisInUIAPI.md#RemoveCardManuallyDebugRmcardCardKeyGet) | **Get** /debug/rmcard/{card_key} | Remove Card Manually
## AddCardManuallyDebugAddcardGroupidCardKeyGet
> interface{} AddCardManuallyDebugAddcardGroupidCardKeyGet(ctx, groupid, cardKey).Execute()
Add Card Manually
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
groupid := int32(56) // int32 |
cardKey := "cardKey_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DebugItemsMaybeDontShowThisInUIAPI.AddCardManuallyDebugAddcardGroupidCardKeyGet(context.Background(), groupid, cardKey).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DebugItemsMaybeDontShowThisInUIAPI.AddCardManuallyDebugAddcardGroupidCardKeyGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AddCardManuallyDebugAddcardGroupidCardKeyGet`: interface{}
fmt.Fprintf(os.Stdout, "Response from `DebugItemsMaybeDontShowThisInUIAPI.AddCardManuallyDebugAddcardGroupidCardKeyGet`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**groupid** | **int32** | |
**cardKey** | **string** | |
### Other Parameters
Other parameters are passed through a pointer to a apiAddCardManuallyDebugAddcardGroupidCardKeyGetRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
### 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)
## ListAllCardsDebugGetcardsPut
> interface{} ListAllCardsDebugGetcardsPut(ctx).Execute()
List All Cards
### 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.DebugItemsMaybeDontShowThisInUIAPI.ListAllCardsDebugGetcardsPut(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DebugItemsMaybeDontShowThisInUIAPI.ListAllCardsDebugGetcardsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListAllCardsDebugGetcardsPut`: interface{}
fmt.Fprintf(os.Stdout, "Response from `DebugItemsMaybeDontShowThisInUIAPI.ListAllCardsDebugGetcardsPut`: %v\n", resp)
}
```
### Path Parameters
This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiListAllCardsDebugGetcardsPutRequest 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)
## RemoveCardManuallyDebugRmcardCardKeyGet
> interface{} RemoveCardManuallyDebugRmcardCardKeyGet(ctx, cardKey).Execute()
Remove Card Manually
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
cardKey := "cardKey_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DebugItemsMaybeDontShowThisInUIAPI.RemoveCardManuallyDebugRmcardCardKeyGet(context.Background(), cardKey).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DebugItemsMaybeDontShowThisInUIAPI.RemoveCardManuallyDebugRmcardCardKeyGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RemoveCardManuallyDebugRmcardCardKeyGet`: interface{}
fmt.Fprintf(os.Stdout, "Response from `DebugItemsMaybeDontShowThisInUIAPI.RemoveCardManuallyDebugRmcardCardKeyGet`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**cardKey** | **string** | |
### Other Parameters
Other parameters are passed through a pointer to a apiRemoveCardManuallyDebugRmcardCardKeyGetRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
### 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)

193
openapi/docs/DoorAPI.md Normal file
View File

@@ -0,0 +1,193 @@
# \DoorAPI
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
## OpenDoorDoorClosePut
> interface{} OpenDoorDoorClosePut(ctx).Execute()
Open Door
### 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.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](../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)
## OpenDoorDoorOpenPut
> interface{} OpenDoorDoorOpenPut(ctx).Execute()
Open Door
### 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.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](../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)
## TestAccessDoorTestPost
> interface{} TestAccessDoorTestPost(ctx).Input(input).Execute()
Test Access
### Example
```go
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]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)

202
openapi/docs/GroupAPI.md Normal file
View File

@@ -0,0 +1,202 @@
# \GroupAPI
All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**CreateGroupGroupsPost**](GroupAPI.md#CreateGroupGroupsPost) | **Post** /groups/ | Create Group
[**DeleteGroupGroupsGroupIdDelete**](GroupAPI.md#DeleteGroupGroupsGroupIdDelete) | **Delete** /groups/{group_id} | Delete Group
[**GetGroupsGroupsGet**](GroupAPI.md#GetGroupsGroupsGet) | **Get** /groups/ | Get Groups
## CreateGroupGroupsPost
> GroupResponse CreateGroupGroupsPost(ctx).GroupCreate(groupCreate).Execute()
Create Group
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
groupCreate := *openapiclient.NewGroupCreate("Name_example") // GroupCreate |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GroupAPI.CreateGroupGroupsPost(context.Background()).GroupCreate(groupCreate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GroupAPI.CreateGroupGroupsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateGroupGroupsPost`: GroupResponse
fmt.Fprintf(os.Stdout, "Response from `GroupAPI.CreateGroupGroupsPost`: %v\n", resp)
}
```
### Path Parameters
### Other Parameters
Other parameters are passed through a pointer to a apiCreateGroupGroupsPostRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**groupCreate** | [**GroupCreate**](GroupCreate.md) | |
### Return type
[**GroupResponse**](GroupResponse.md)
### Authorization
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
### HTTP request headers
- **Content-Type**: application/json
- **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)
## DeleteGroupGroupsGroupIdDelete
> interface{} DeleteGroupGroupsGroupIdDelete(ctx, groupId).Execute()
Delete Group
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
groupId := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GroupAPI.DeleteGroupGroupsGroupIdDelete(context.Background(), groupId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GroupAPI.DeleteGroupGroupsGroupIdDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteGroupGroupsGroupIdDelete`: interface{}
fmt.Fprintf(os.Stdout, "Response from `GroupAPI.DeleteGroupGroupsGroupIdDelete`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**groupId** | **int32** | |
### Other Parameters
Other parameters are passed through a pointer to a apiDeleteGroupGroupsGroupIdDeleteRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
### 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)
## GetGroupsGroupsGet
> []GroupResponse GetGroupsGroupsGet(ctx).Execute()
Get Groups
### 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.GroupAPI.GetGroupsGroupsGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GroupAPI.GetGroupsGroupsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetGroupsGroupsGet`: []GroupResponse
fmt.Fprintf(os.Stdout, "Response from `GroupAPI.GetGroupsGroupsGet`: %v\n", resp)
}
```
### Path Parameters
This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiGetGroupsGroupsGetRequest struct via the builder pattern
### Return type
[**[]GroupResponse**](GroupResponse.md)
### 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)

View File

@@ -0,0 +1,51 @@
# GroupCreate
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
## Methods
### NewGroupCreate
`func NewGroupCreate(name string, ) *GroupCreate`
NewGroupCreate instantiates a new GroupCreate object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewGroupCreateWithDefaults
`func NewGroupCreateWithDefaults() *GroupCreate`
NewGroupCreateWithDefaults instantiates a new GroupCreate object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetName
`func (o *GroupCreate) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *GroupCreate) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *GroupCreate) SetName(v string)`
SetName sets Name field to given value.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

87
openapi/docs/GroupDB.md Normal file
View File

@@ -0,0 +1,87 @@
# GroupDB
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Id** | Pointer to **NullableInt32** | | [optional]
## Methods
### NewGroupDB
`func NewGroupDB(name string, ) *GroupDB`
NewGroupDB instantiates a new GroupDB object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewGroupDBWithDefaults
`func NewGroupDBWithDefaults() *GroupDB`
NewGroupDBWithDefaults instantiates a new GroupDB object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetName
`func (o *GroupDB) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *GroupDB) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *GroupDB) SetName(v string)`
SetName sets Name field to given value.
### GetId
`func (o *GroupDB) GetId() int32`
GetId returns the Id field if non-nil, zero value otherwise.
### GetIdOk
`func (o *GroupDB) GetIdOk() (*int32, bool)`
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetId
`func (o *GroupDB) SetId(v int32)`
SetId sets Id field to given value.
### HasId
`func (o *GroupDB) HasId() bool`
HasId returns a boolean if a field has been set.
### SetIdNil
`func (o *GroupDB) SetIdNil(b bool)`
SetIdNil sets the value for Id to be an explicit nil
### UnsetId
`func (o *GroupDB) UnsetId()`
UnsetId ensures that no value is present for Id, not even an explicit nil
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -0,0 +1,134 @@
# GroupResponse
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Id** | **int32** | |
**Cards** | [**[]Card**](Card.md) | |
**Accessauths** | [**[]AccessAuthorizationDB**](AccessAuthorizationDB.md) | |
## Methods
### NewGroupResponse
`func NewGroupResponse(name string, id int32, cards []Card, accessauths []AccessAuthorizationDB, ) *GroupResponse`
NewGroupResponse instantiates a new GroupResponse object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewGroupResponseWithDefaults
`func NewGroupResponseWithDefaults() *GroupResponse`
NewGroupResponseWithDefaults instantiates a new GroupResponse object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetName
`func (o *GroupResponse) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *GroupResponse) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *GroupResponse) SetName(v string)`
SetName sets Name field to given value.
### GetId
`func (o *GroupResponse) GetId() int32`
GetId returns the Id field if non-nil, zero value otherwise.
### GetIdOk
`func (o *GroupResponse) GetIdOk() (*int32, bool)`
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetId
`func (o *GroupResponse) SetId(v int32)`
SetId sets Id field to given value.
### GetCards
`func (o *GroupResponse) GetCards() []Card`
GetCards returns the Cards field if non-nil, zero value otherwise.
### GetCardsOk
`func (o *GroupResponse) GetCardsOk() (*[]Card, bool)`
GetCardsOk returns a tuple with the Cards field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetCards
`func (o *GroupResponse) SetCards(v []Card)`
SetCards sets Cards field to given value.
### SetCardsNil
`func (o *GroupResponse) SetCardsNil(b bool)`
SetCardsNil sets the value for Cards to be an explicit nil
### UnsetCards
`func (o *GroupResponse) UnsetCards()`
UnsetCards ensures that no value is present for Cards, not even an explicit nil
### GetAccessauths
`func (o *GroupResponse) GetAccessauths() []AccessAuthorizationDB`
GetAccessauths returns the Accessauths field if non-nil, zero value otherwise.
### GetAccessauthsOk
`func (o *GroupResponse) GetAccessauthsOk() (*[]AccessAuthorizationDB, bool)`
GetAccessauthsOk returns a tuple with the Accessauths field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAccessauths
`func (o *GroupResponse) SetAccessauths(v []AccessAuthorizationDB)`
SetAccessauths sets Accessauths field to given value.
### SetAccessauthsNil
`func (o *GroupResponse) SetAccessauthsNil(b bool)`
SetAccessauthsNil sets the value for Accessauths to be an explicit nil
### UnsetAccessauths
`func (o *GroupResponse) UnsetAccessauths()`
UnsetAccessauths ensures that no value is present for Accessauths, not even an explicit nil
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -0,0 +1,56 @@
# HTTPValidationError
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Detail** | Pointer to [**[]ValidationError**](ValidationError.md) | | [optional]
## Methods
### NewHTTPValidationError
`func NewHTTPValidationError() *HTTPValidationError`
NewHTTPValidationError instantiates a new HTTPValidationError object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewHTTPValidationErrorWithDefaults
`func NewHTTPValidationErrorWithDefaults() *HTTPValidationError`
NewHTTPValidationErrorWithDefaults instantiates a new HTTPValidationError object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetDetail
`func (o *HTTPValidationError) GetDetail() []ValidationError`
GetDetail returns the Detail field if non-nil, zero value otherwise.
### GetDetailOk
`func (o *HTTPValidationError) GetDetailOk() (*[]ValidationError, bool)`
GetDetailOk returns a tuple with the Detail field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDetail
`func (o *HTTPValidationError) SetDetail(v []ValidationError)`
SetDetail sets Detail field to given value.
### HasDetail
`func (o *HTTPValidationError) HasDetail() bool`
HasDetail returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -0,0 +1,30 @@
# LocationInner
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
## Methods
### NewLocationInner
`func NewLocationInner() *LocationInner`
NewLocationInner instantiates a new LocationInner object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewLocationInnerWithDefaults
`func NewLocationInnerWithDefaults() *LocationInner`
NewLocationInnerWithDefaults instantiates a new LocationInner object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

155
openapi/docs/Timetable.md Normal file
View File

@@ -0,0 +1,155 @@
# Timetable
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Weekday** | **int32** | |
**Starttime** | **string** | |
**Duration** | **int32** | |
**Id** | Pointer to **NullableInt32** | | [optional]
**AccessauthId** | Pointer to **int32** | | [optional]
## Methods
### NewTimetable
`func NewTimetable(weekday int32, starttime string, duration int32, ) *Timetable`
NewTimetable instantiates a new Timetable object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewTimetableWithDefaults
`func NewTimetableWithDefaults() *Timetable`
NewTimetableWithDefaults instantiates a new Timetable object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetWeekday
`func (o *Timetable) GetWeekday() int32`
GetWeekday returns the Weekday field if non-nil, zero value otherwise.
### GetWeekdayOk
`func (o *Timetable) GetWeekdayOk() (*int32, bool)`
GetWeekdayOk returns a tuple with the Weekday field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetWeekday
`func (o *Timetable) SetWeekday(v int32)`
SetWeekday sets Weekday field to given value.
### GetStarttime
`func (o *Timetable) GetStarttime() string`
GetStarttime returns the Starttime field if non-nil, zero value otherwise.
### GetStarttimeOk
`func (o *Timetable) GetStarttimeOk() (*string, bool)`
GetStarttimeOk returns a tuple with the Starttime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStarttime
`func (o *Timetable) SetStarttime(v string)`
SetStarttime sets Starttime field to given value.
### GetDuration
`func (o *Timetable) GetDuration() int32`
GetDuration returns the Duration field if non-nil, zero value otherwise.
### GetDurationOk
`func (o *Timetable) GetDurationOk() (*int32, bool)`
GetDurationOk returns a tuple with the Duration field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDuration
`func (o *Timetable) SetDuration(v int32)`
SetDuration sets Duration field to given value.
### GetId
`func (o *Timetable) GetId() int32`
GetId returns the Id field if non-nil, zero value otherwise.
### GetIdOk
`func (o *Timetable) GetIdOk() (*int32, bool)`
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetId
`func (o *Timetable) SetId(v int32)`
SetId sets Id field to given value.
### HasId
`func (o *Timetable) HasId() bool`
HasId returns a boolean if a field has been set.
### SetIdNil
`func (o *Timetable) SetIdNil(b bool)`
SetIdNil sets the value for Id to be an explicit nil
### UnsetId
`func (o *Timetable) UnsetId()`
UnsetId ensures that no value is present for Id, not even an explicit nil
### GetAccessauthId
`func (o *Timetable) GetAccessauthId() int32`
GetAccessauthId returns the AccessauthId field if non-nil, zero value otherwise.
### GetAccessauthIdOk
`func (o *Timetable) GetAccessauthIdOk() (*int32, bool)`
GetAccessauthIdOk returns a tuple with the AccessauthId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAccessauthId
`func (o *Timetable) SetAccessauthId(v int32)`
SetAccessauthId sets AccessauthId field to given value.
### HasAccessauthId
`func (o *Timetable) HasAccessauthId() bool`
HasAccessauthId returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -0,0 +1,93 @@
# TimetableCreate
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Weekday** | **int32** | |
**Starttime** | **string** | |
**Duration** | **int32** | |
## Methods
### NewTimetableCreate
`func NewTimetableCreate(weekday int32, starttime string, duration int32, ) *TimetableCreate`
NewTimetableCreate instantiates a new TimetableCreate object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewTimetableCreateWithDefaults
`func NewTimetableCreateWithDefaults() *TimetableCreate`
NewTimetableCreateWithDefaults instantiates a new TimetableCreate object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetWeekday
`func (o *TimetableCreate) GetWeekday() int32`
GetWeekday returns the Weekday field if non-nil, zero value otherwise.
### GetWeekdayOk
`func (o *TimetableCreate) GetWeekdayOk() (*int32, bool)`
GetWeekdayOk returns a tuple with the Weekday field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetWeekday
`func (o *TimetableCreate) SetWeekday(v int32)`
SetWeekday sets Weekday field to given value.
### GetStarttime
`func (o *TimetableCreate) GetStarttime() string`
GetStarttime returns the Starttime field if non-nil, zero value otherwise.
### GetStarttimeOk
`func (o *TimetableCreate) GetStarttimeOk() (*string, bool)`
GetStarttimeOk returns a tuple with the Starttime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStarttime
`func (o *TimetableCreate) SetStarttime(v string)`
SetStarttime sets Starttime field to given value.
### GetDuration
`func (o *TimetableCreate) GetDuration() int32`
GetDuration returns the Duration field if non-nil, zero value otherwise.
### GetDurationOk
`func (o *TimetableCreate) GetDurationOk() (*int32, bool)`
GetDurationOk returns a tuple with the Duration field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDuration
`func (o *TimetableCreate) SetDuration(v int32)`
SetDuration sets Duration field to given value.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

72
openapi/docs/Token.md Normal file
View File

@@ -0,0 +1,72 @@
# Token
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AccessToken** | **string** | |
**TokenType** | **string** | |
## Methods
### NewToken
`func NewToken(accessToken string, tokenType string, ) *Token`
NewToken instantiates a new Token object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewTokenWithDefaults
`func NewTokenWithDefaults() *Token`
NewTokenWithDefaults instantiates a new Token object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetAccessToken
`func (o *Token) GetAccessToken() string`
GetAccessToken returns the AccessToken field if non-nil, zero value otherwise.
### GetAccessTokenOk
`func (o *Token) GetAccessTokenOk() (*string, bool)`
GetAccessTokenOk returns a tuple with the AccessToken field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAccessToken
`func (o *Token) SetAccessToken(v string)`
SetAccessToken sets AccessToken field to given value.
### GetTokenType
`func (o *Token) GetTokenType() string`
GetTokenType returns the TokenType field if non-nil, zero value otherwise.
### GetTokenTypeOk
`func (o *Token) GetTokenTypeOk() (*string, bool)`
GetTokenTypeOk returns a tuple with the TokenType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTokenType
`func (o *Token) SetTokenType(v string)`
SetTokenType sets TokenType field to given value.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

143
openapi/docs/TokenAPI.md Normal file
View File

@@ -0,0 +1,143 @@
# \TokenAPI
All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**LoginForAccessTokenTokenPost**](TokenAPI.md#LoginForAccessTokenTokenPost) | **Post** /token | Login For Access Token
[**TestLoginTestLoginGet**](TokenAPI.md#TestLoginTestLoginGet) | **Get** /test/login | Test Login
## LoginForAccessTokenTokenPost
> Token LoginForAccessTokenTokenPost(ctx).Username(username).Password(password).GrantType(grantType).Scope(scope).ClientId(clientId).ClientSecret(clientSecret).Execute()
Login For Access Token
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
username := "username_example" // string |
password := "password_example" // string |
grantType := "grantType_example" // string | (optional)
scope := "scope_example" // string | (optional) (default to "")
clientId := "clientId_example" // string | (optional)
clientSecret := "clientSecret_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TokenAPI.LoginForAccessTokenTokenPost(context.Background()).Username(username).Password(password).GrantType(grantType).Scope(scope).ClientId(clientId).ClientSecret(clientSecret).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TokenAPI.LoginForAccessTokenTokenPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `LoginForAccessTokenTokenPost`: Token
fmt.Fprintf(os.Stdout, "Response from `TokenAPI.LoginForAccessTokenTokenPost`: %v\n", resp)
}
```
### Path Parameters
### Other Parameters
Other parameters are passed through a pointer to a apiLoginForAccessTokenTokenPostRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **string** | |
**password** | **string** | |
**grantType** | **string** | |
**scope** | **string** | | [default to ""]
**clientId** | **string** | |
**clientSecret** | **string** | |
### Return type
[**Token**](Token.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/x-www-form-urlencoded
- **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)
## TestLoginTestLoginGet
> UserDB TestLoginTestLoginGet(ctx).Execute()
Test Login
### 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.TokenAPI.TestLoginTestLoginGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TokenAPI.TestLoginTestLoginGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `TestLoginTestLoginGet`: UserDB
fmt.Fprintf(os.Stdout, "Response from `TokenAPI.TestLoginTestLoginGet`: %v\n", resp)
}
```
### Path Parameters
This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiTestLoginTestLoginGetRequest struct via the builder pattern
### Return type
[**UserDB**](UserDB.md)
### 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)

134
openapi/docs/UserCreate.md Normal file
View File

@@ -0,0 +1,134 @@
# UserCreate
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Email** | Pointer to **NullableString** | | [optional]
**IsAdmin** | Pointer to **bool** | | [optional] [default to false]
**Password** | **string** | |
## Methods
### NewUserCreate
`func NewUserCreate(name string, password string, ) *UserCreate`
NewUserCreate instantiates a new UserCreate object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewUserCreateWithDefaults
`func NewUserCreateWithDefaults() *UserCreate`
NewUserCreateWithDefaults instantiates a new UserCreate object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetName
`func (o *UserCreate) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *UserCreate) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *UserCreate) SetName(v string)`
SetName sets Name field to given value.
### GetEmail
`func (o *UserCreate) GetEmail() string`
GetEmail returns the Email field if non-nil, zero value otherwise.
### GetEmailOk
`func (o *UserCreate) GetEmailOk() (*string, bool)`
GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetEmail
`func (o *UserCreate) SetEmail(v string)`
SetEmail sets Email field to given value.
### HasEmail
`func (o *UserCreate) HasEmail() bool`
HasEmail returns a boolean if a field has been set.
### SetEmailNil
`func (o *UserCreate) SetEmailNil(b bool)`
SetEmailNil sets the value for Email to be an explicit nil
### UnsetEmail
`func (o *UserCreate) UnsetEmail()`
UnsetEmail ensures that no value is present for Email, not even an explicit nil
### GetIsAdmin
`func (o *UserCreate) GetIsAdmin() bool`
GetIsAdmin returns the IsAdmin field if non-nil, zero value otherwise.
### GetIsAdminOk
`func (o *UserCreate) GetIsAdminOk() (*bool, bool)`
GetIsAdminOk returns a tuple with the IsAdmin field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetIsAdmin
`func (o *UserCreate) SetIsAdmin(v bool)`
SetIsAdmin sets IsAdmin field to given value.
### HasIsAdmin
`func (o *UserCreate) HasIsAdmin() bool`
HasIsAdmin returns a boolean if a field has been set.
### GetPassword
`func (o *UserCreate) GetPassword() string`
GetPassword returns the Password field if non-nil, zero value otherwise.
### GetPasswordOk
`func (o *UserCreate) GetPasswordOk() (*string, bool)`
GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPassword
`func (o *UserCreate) SetPassword(v string)`
SetPassword sets Password field to given value.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

170
openapi/docs/UserDB.md Normal file
View File

@@ -0,0 +1,170 @@
# UserDB
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Email** | Pointer to **NullableString** | | [optional]
**IsAdmin** | Pointer to **bool** | | [optional] [default to false]
**Id** | Pointer to **NullableInt32** | | [optional]
**Passwordhash** | **string** | |
## Methods
### NewUserDB
`func NewUserDB(name string, passwordhash string, ) *UserDB`
NewUserDB instantiates a new UserDB object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewUserDBWithDefaults
`func NewUserDBWithDefaults() *UserDB`
NewUserDBWithDefaults instantiates a new UserDB object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetName
`func (o *UserDB) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *UserDB) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *UserDB) SetName(v string)`
SetName sets Name field to given value.
### GetEmail
`func (o *UserDB) GetEmail() string`
GetEmail returns the Email field if non-nil, zero value otherwise.
### GetEmailOk
`func (o *UserDB) GetEmailOk() (*string, bool)`
GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetEmail
`func (o *UserDB) SetEmail(v string)`
SetEmail sets Email field to given value.
### HasEmail
`func (o *UserDB) HasEmail() bool`
HasEmail returns a boolean if a field has been set.
### SetEmailNil
`func (o *UserDB) SetEmailNil(b bool)`
SetEmailNil sets the value for Email to be an explicit nil
### UnsetEmail
`func (o *UserDB) UnsetEmail()`
UnsetEmail ensures that no value is present for Email, not even an explicit nil
### GetIsAdmin
`func (o *UserDB) GetIsAdmin() bool`
GetIsAdmin returns the IsAdmin field if non-nil, zero value otherwise.
### GetIsAdminOk
`func (o *UserDB) GetIsAdminOk() (*bool, bool)`
GetIsAdminOk returns a tuple with the IsAdmin field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetIsAdmin
`func (o *UserDB) SetIsAdmin(v bool)`
SetIsAdmin sets IsAdmin field to given value.
### HasIsAdmin
`func (o *UserDB) HasIsAdmin() bool`
HasIsAdmin returns a boolean if a field has been set.
### GetId
`func (o *UserDB) GetId() int32`
GetId returns the Id field if non-nil, zero value otherwise.
### GetIdOk
`func (o *UserDB) GetIdOk() (*int32, bool)`
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetId
`func (o *UserDB) SetId(v int32)`
SetId sets Id field to given value.
### HasId
`func (o *UserDB) HasId() bool`
HasId returns a boolean if a field has been set.
### SetIdNil
`func (o *UserDB) SetIdNil(b bool)`
SetIdNil sets the value for Id to be an explicit nil
### UnsetId
`func (o *UserDB) UnsetId()`
UnsetId ensures that no value is present for Id, not even an explicit nil
### GetPasswordhash
`func (o *UserDB) GetPasswordhash() string`
GetPasswordhash returns the Passwordhash field if non-nil, zero value otherwise.
### GetPasswordhashOk
`func (o *UserDB) GetPasswordhashOk() (*string, bool)`
GetPasswordhashOk returns a tuple with the Passwordhash field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPasswordhash
`func (o *UserDB) SetPasswordhash(v string)`
SetPasswordhash sets Passwordhash field to given value.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -0,0 +1,134 @@
# UserResponse
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Email** | Pointer to **NullableString** | | [optional]
**IsAdmin** | Pointer to **bool** | | [optional] [default to false]
**Id** | **int32** | |
## Methods
### NewUserResponse
`func NewUserResponse(name string, id int32, ) *UserResponse`
NewUserResponse instantiates a new UserResponse object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewUserResponseWithDefaults
`func NewUserResponseWithDefaults() *UserResponse`
NewUserResponseWithDefaults instantiates a new UserResponse object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetName
`func (o *UserResponse) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *UserResponse) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *UserResponse) SetName(v string)`
SetName sets Name field to given value.
### GetEmail
`func (o *UserResponse) GetEmail() string`
GetEmail returns the Email field if non-nil, zero value otherwise.
### GetEmailOk
`func (o *UserResponse) GetEmailOk() (*string, bool)`
GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetEmail
`func (o *UserResponse) SetEmail(v string)`
SetEmail sets Email field to given value.
### HasEmail
`func (o *UserResponse) HasEmail() bool`
HasEmail returns a boolean if a field has been set.
### SetEmailNil
`func (o *UserResponse) SetEmailNil(b bool)`
SetEmailNil sets the value for Email to be an explicit nil
### UnsetEmail
`func (o *UserResponse) UnsetEmail()`
UnsetEmail ensures that no value is present for Email, not even an explicit nil
### GetIsAdmin
`func (o *UserResponse) GetIsAdmin() bool`
GetIsAdmin returns the IsAdmin field if non-nil, zero value otherwise.
### GetIsAdminOk
`func (o *UserResponse) GetIsAdminOk() (*bool, bool)`
GetIsAdminOk returns a tuple with the IsAdmin field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetIsAdmin
`func (o *UserResponse) SetIsAdmin(v bool)`
SetIsAdmin sets IsAdmin field to given value.
### HasIsAdmin
`func (o *UserResponse) HasIsAdmin() bool`
HasIsAdmin returns a boolean if a field has been set.
### GetId
`func (o *UserResponse) GetId() int32`
GetId returns the Id field if non-nil, zero value otherwise.
### GetIdOk
`func (o *UserResponse) GetIdOk() (*int32, bool)`
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetId
`func (o *UserResponse) SetId(v int32)`
SetId sets Id field to given value.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

174
openapi/docs/UserUpdate.md Normal file
View File

@@ -0,0 +1,174 @@
# UserUpdate
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **NullableString** | | [optional]
**Email** | Pointer to **NullableString** | | [optional]
**IsAdmin** | Pointer to **NullableBool** | | [optional]
**Password** | Pointer to **NullableString** | | [optional]
## Methods
### NewUserUpdate
`func NewUserUpdate() *UserUpdate`
NewUserUpdate instantiates a new UserUpdate object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewUserUpdateWithDefaults
`func NewUserUpdateWithDefaults() *UserUpdate`
NewUserUpdateWithDefaults instantiates a new UserUpdate object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetName
`func (o *UserUpdate) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *UserUpdate) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *UserUpdate) SetName(v string)`
SetName sets Name field to given value.
### HasName
`func (o *UserUpdate) HasName() bool`
HasName returns a boolean if a field has been set.
### SetNameNil
`func (o *UserUpdate) SetNameNil(b bool)`
SetNameNil sets the value for Name to be an explicit nil
### UnsetName
`func (o *UserUpdate) UnsetName()`
UnsetName ensures that no value is present for Name, not even an explicit nil
### GetEmail
`func (o *UserUpdate) GetEmail() string`
GetEmail returns the Email field if non-nil, zero value otherwise.
### GetEmailOk
`func (o *UserUpdate) GetEmailOk() (*string, bool)`
GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetEmail
`func (o *UserUpdate) SetEmail(v string)`
SetEmail sets Email field to given value.
### HasEmail
`func (o *UserUpdate) HasEmail() bool`
HasEmail returns a boolean if a field has been set.
### SetEmailNil
`func (o *UserUpdate) SetEmailNil(b bool)`
SetEmailNil sets the value for Email to be an explicit nil
### UnsetEmail
`func (o *UserUpdate) UnsetEmail()`
UnsetEmail ensures that no value is present for Email, not even an explicit nil
### GetIsAdmin
`func (o *UserUpdate) GetIsAdmin() bool`
GetIsAdmin returns the IsAdmin field if non-nil, zero value otherwise.
### GetIsAdminOk
`func (o *UserUpdate) GetIsAdminOk() (*bool, bool)`
GetIsAdminOk returns a tuple with the IsAdmin field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetIsAdmin
`func (o *UserUpdate) SetIsAdmin(v bool)`
SetIsAdmin sets IsAdmin field to given value.
### HasIsAdmin
`func (o *UserUpdate) HasIsAdmin() bool`
HasIsAdmin returns a boolean if a field has been set.
### SetIsAdminNil
`func (o *UserUpdate) SetIsAdminNil(b bool)`
SetIsAdminNil sets the value for IsAdmin to be an explicit nil
### UnsetIsAdmin
`func (o *UserUpdate) UnsetIsAdmin()`
UnsetIsAdmin ensures that no value is present for IsAdmin, not even an explicit nil
### GetPassword
`func (o *UserUpdate) GetPassword() string`
GetPassword returns the Password field if non-nil, zero value otherwise.
### GetPasswordOk
`func (o *UserUpdate) GetPasswordOk() (*string, bool)`
GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPassword
`func (o *UserUpdate) SetPassword(v string)`
SetPassword sets Password field to given value.
### HasPassword
`func (o *UserUpdate) HasPassword() bool`
HasPassword returns a boolean if a field has been set.
### SetPasswordNil
`func (o *UserUpdate) SetPasswordNil(b bool)`
SetPasswordNil sets the value for Password to be an explicit nil
### UnsetPassword
`func (o *UserUpdate) UnsetPassword()`
UnsetPassword ensures that no value is present for Password, not even an explicit nil
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

342
openapi/docs/UsersAPI.md Normal file
View File

@@ -0,0 +1,342 @@
# \UsersAPI
All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**CreateUserUsersPost**](UsersAPI.md#CreateUserUsersPost) | **Post** /users/ | Create User
[**DeleteUserUsersUserIdDelete**](UsersAPI.md#DeleteUserUsersUserIdDelete) | **Delete** /users/{user_id} | Delete User
[**ReadUserUsersUserIdGet**](UsersAPI.md#ReadUserUsersUserIdGet) | **Get** /users/{user_id} | Read User
[**ReadUsersUsersGet**](UsersAPI.md#ReadUsersUsersGet) | **Get** /users/ | Read Users
[**UpdateUserUsersUserIdPatch**](UsersAPI.md#UpdateUserUsersUserIdPatch) | **Patch** /users/{user_id} | Update User
## CreateUserUsersPost
> UserResponse CreateUserUsersPost(ctx).UserCreate(userCreate).Execute()
Create User
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
userCreate := *openapiclient.NewUserCreate("Name_example", "Password_example") // UserCreate |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UsersAPI.CreateUserUsersPost(context.Background()).UserCreate(userCreate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.CreateUserUsersPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateUserUsersPost`: UserResponse
fmt.Fprintf(os.Stdout, "Response from `UsersAPI.CreateUserUsersPost`: %v\n", resp)
}
```
### Path Parameters
### Other Parameters
Other parameters are passed through a pointer to a apiCreateUserUsersPostRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**userCreate** | [**UserCreate**](UserCreate.md) | |
### Return type
[**UserResponse**](UserResponse.md)
### Authorization
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
### HTTP request headers
- **Content-Type**: application/json
- **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)
## DeleteUserUsersUserIdDelete
> interface{} DeleteUserUsersUserIdDelete(ctx, userId).Execute()
Delete User
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
userId := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UsersAPI.DeleteUserUsersUserIdDelete(context.Background(), userId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.DeleteUserUsersUserIdDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteUserUsersUserIdDelete`: interface{}
fmt.Fprintf(os.Stdout, "Response from `UsersAPI.DeleteUserUsersUserIdDelete`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**userId** | **int32** | |
### Other Parameters
Other parameters are passed through a pointer to a apiDeleteUserUsersUserIdDeleteRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
### 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)
## ReadUserUsersUserIdGet
> UserResponse ReadUserUsersUserIdGet(ctx, userId).Execute()
Read User
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
userId := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UsersAPI.ReadUserUsersUserIdGet(context.Background(), userId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.ReadUserUsersUserIdGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReadUserUsersUserIdGet`: UserResponse
fmt.Fprintf(os.Stdout, "Response from `UsersAPI.ReadUserUsersUserIdGet`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**userId** | **int32** | |
### Other Parameters
Other parameters are passed through a pointer to a apiReadUserUsersUserIdGetRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
### Return type
[**UserResponse**](UserResponse.md)
### 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)
## ReadUsersUsersGet
> []UserResponse ReadUsersUsersGet(ctx).Execute()
Read Users
### 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.UsersAPI.ReadUsersUsersGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.ReadUsersUsersGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReadUsersUsersGet`: []UserResponse
fmt.Fprintf(os.Stdout, "Response from `UsersAPI.ReadUsersUsersGet`: %v\n", resp)
}
```
### Path Parameters
This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiReadUsersUsersGetRequest struct via the builder pattern
### Return type
[**[]UserResponse**](UserResponse.md)
### 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)
## UpdateUserUsersUserIdPatch
> UserResponse UpdateUserUsersUserIdPatch(ctx, userId).UserUpdate(userUpdate).Execute()
Update User
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
userId := int32(56) // int32 |
userUpdate := *openapiclient.NewUserUpdate() // UserUpdate |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UsersAPI.UpdateUserUsersUserIdPatch(context.Background(), userId).UserUpdate(userUpdate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UpdateUserUsersUserIdPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateUserUsersUserIdPatch`: UserResponse
fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UpdateUserUsersUserIdPatch`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**userId** | **int32** | |
### Other Parameters
Other parameters are passed through a pointer to a apiUpdateUserUsersUserIdPatchRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**userUpdate** | [**UserUpdate**](UserUpdate.md) | |
### Return type
[**UserResponse**](UserResponse.md)
### Authorization
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
### HTTP request headers
- **Content-Type**: application/json
- **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)

View File

@@ -0,0 +1,155 @@
# ValidationError
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Loc** | [**[]LocationInner**](LocationInner.md) | |
**Msg** | **string** | |
**Type** | **string** | |
**Input** | Pointer to **interface{}** | | [optional]
**Ctx** | Pointer to **map[string]interface{}** | | [optional]
## Methods
### NewValidationError
`func NewValidationError(loc []LocationInner, msg string, type_ string, ) *ValidationError`
NewValidationError instantiates a new ValidationError object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewValidationErrorWithDefaults
`func NewValidationErrorWithDefaults() *ValidationError`
NewValidationErrorWithDefaults instantiates a new ValidationError object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetLoc
`func (o *ValidationError) GetLoc() []LocationInner`
GetLoc returns the Loc field if non-nil, zero value otherwise.
### GetLocOk
`func (o *ValidationError) GetLocOk() (*[]LocationInner, bool)`
GetLocOk returns a tuple with the Loc field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLoc
`func (o *ValidationError) SetLoc(v []LocationInner)`
SetLoc sets Loc field to given value.
### GetMsg
`func (o *ValidationError) GetMsg() string`
GetMsg returns the Msg field if non-nil, zero value otherwise.
### GetMsgOk
`func (o *ValidationError) GetMsgOk() (*string, bool)`
GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMsg
`func (o *ValidationError) SetMsg(v string)`
SetMsg sets Msg field to given value.
### GetType
`func (o *ValidationError) GetType() string`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
`func (o *ValidationError) GetTypeOk() (*string, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
`func (o *ValidationError) SetType(v string)`
SetType sets Type field to given value.
### GetInput
`func (o *ValidationError) GetInput() interface{}`
GetInput returns the Input field if non-nil, zero value otherwise.
### GetInputOk
`func (o *ValidationError) GetInputOk() (*interface{}, bool)`
GetInputOk returns a tuple with the Input field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetInput
`func (o *ValidationError) SetInput(v interface{})`
SetInput sets Input field to given value.
### HasInput
`func (o *ValidationError) HasInput() bool`
HasInput returns a boolean if a field has been set.
### SetInputNil
`func (o *ValidationError) SetInputNil(b bool)`
SetInputNil sets the value for Input to be an explicit nil
### UnsetInput
`func (o *ValidationError) UnsetInput()`
UnsetInput ensures that no value is present for Input, not even an explicit nil
### GetCtx
`func (o *ValidationError) GetCtx() map[string]interface{}`
GetCtx returns the Ctx field if non-nil, zero value otherwise.
### GetCtxOk
`func (o *ValidationError) GetCtxOk() (*map[string]interface{}, bool)`
GetCtxOk returns a tuple with the Ctx field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetCtx
`func (o *ValidationError) SetCtx(v map[string]interface{})`
SetCtx sets Ctx field to given value.
### HasCtx
`func (o *ValidationError) HasCtx() bool`
HasCtx returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)