mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
243 lines
6.3 KiB
Markdown
243 lines
6.3 KiB
Markdown
# SessionManagementAPI
|
|
|
|
All URIs are relative to *http://localhost*
|
|
|
|
Method | HTTP request | Description
|
|
------------- | ------------- | -------------
|
|
[**deleteSession**](SessionManagementAPI.md#deletesession) | **DELETE** /sessions/{session_id} |
|
|
[**getSession**](SessionManagementAPI.md#getsession) | **GET** /sessions/{session_id} |
|
|
[**getSessionInsights**](SessionManagementAPI.md#getsessioninsights) | **GET** /sessions/insights |
|
|
[**listSessions**](SessionManagementAPI.md#listsessions) | **GET** /sessions |
|
|
[**updateSessionDescription**](SessionManagementAPI.md#updatesessiondescription) | **PUT** /sessions/{session_id}/description |
|
|
|
|
|
|
# **deleteSession**
|
|
```swift
|
|
open class func deleteSession(sessionId: String, completion: @escaping (_ data: Void?, _ error: Error?) -> Void)
|
|
```
|
|
|
|
|
|
|
|
### Example
|
|
```swift
|
|
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
|
|
import GooseAPI
|
|
|
|
let sessionId = "sessionId_example" // String | Unique identifier for the session
|
|
|
|
SessionManagementAPI.deleteSession(sessionId: sessionId) { (response, error) in
|
|
guard error == nil else {
|
|
print(error)
|
|
return
|
|
}
|
|
|
|
if (response) {
|
|
dump(response)
|
|
}
|
|
}
|
|
```
|
|
|
|
### Parameters
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**sessionId** | **String** | Unique identifier for the session |
|
|
|
|
### Return type
|
|
|
|
Void (empty response body)
|
|
|
|
### Authorization
|
|
|
|
No authorization required
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: Not defined
|
|
|
|
[[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)
|
|
|
|
# **getSession**
|
|
```swift
|
|
open class func getSession(sessionId: String, completion: @escaping (_ data: Session?, _ error: Error?) -> Void)
|
|
```
|
|
|
|
|
|
|
|
### Example
|
|
```swift
|
|
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
|
|
import GooseAPI
|
|
|
|
let sessionId = "sessionId_example" // String | Unique identifier for the session
|
|
|
|
SessionManagementAPI.getSession(sessionId: sessionId) { (response, error) in
|
|
guard error == nil else {
|
|
print(error)
|
|
return
|
|
}
|
|
|
|
if (response) {
|
|
dump(response)
|
|
}
|
|
}
|
|
```
|
|
|
|
### Parameters
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**sessionId** | **String** | Unique identifier for the session |
|
|
|
|
### Return type
|
|
|
|
[**Session**](Session.md)
|
|
|
|
### 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)
|
|
|
|
# **getSessionInsights**
|
|
```swift
|
|
open class func getSessionInsights(completion: @escaping (_ data: SessionInsights?, _ error: Error?) -> Void)
|
|
```
|
|
|
|
|
|
|
|
### Example
|
|
```swift
|
|
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
|
|
import GooseAPI
|
|
|
|
|
|
SessionManagementAPI.getSessionInsights() { (response, error) in
|
|
guard error == nil else {
|
|
print(error)
|
|
return
|
|
}
|
|
|
|
if (response) {
|
|
dump(response)
|
|
}
|
|
}
|
|
```
|
|
|
|
### Parameters
|
|
This endpoint does not need any parameter.
|
|
|
|
### Return type
|
|
|
|
[**SessionInsights**](SessionInsights.md)
|
|
|
|
### 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)
|
|
|
|
# **listSessions**
|
|
```swift
|
|
open class func listSessions(completion: @escaping (_ data: SessionListResponse?, _ error: Error?) -> Void)
|
|
```
|
|
|
|
|
|
|
|
### Example
|
|
```swift
|
|
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
|
|
import GooseAPI
|
|
|
|
|
|
SessionManagementAPI.listSessions() { (response, error) in
|
|
guard error == nil else {
|
|
print(error)
|
|
return
|
|
}
|
|
|
|
if (response) {
|
|
dump(response)
|
|
}
|
|
}
|
|
```
|
|
|
|
### Parameters
|
|
This endpoint does not need any parameter.
|
|
|
|
### Return type
|
|
|
|
[**SessionListResponse**](SessionListResponse.md)
|
|
|
|
### 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)
|
|
|
|
# **updateSessionDescription**
|
|
```swift
|
|
open class func updateSessionDescription(sessionId: String, updateSessionDescriptionRequest: UpdateSessionDescriptionRequest, completion: @escaping (_ data: Void?, _ error: Error?) -> Void)
|
|
```
|
|
|
|
|
|
|
|
### Example
|
|
```swift
|
|
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
|
|
import GooseAPI
|
|
|
|
let sessionId = "sessionId_example" // String | Unique identifier for the session
|
|
let updateSessionDescriptionRequest = UpdateSessionDescriptionRequest(description: "description_example") // UpdateSessionDescriptionRequest |
|
|
|
|
SessionManagementAPI.updateSessionDescription(sessionId: sessionId, updateSessionDescriptionRequest: updateSessionDescriptionRequest) { (response, error) in
|
|
guard error == nil else {
|
|
print(error)
|
|
return
|
|
}
|
|
|
|
if (response) {
|
|
dump(response)
|
|
}
|
|
}
|
|
```
|
|
|
|
### Parameters
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**sessionId** | **String** | Unique identifier for the session |
|
|
**updateSessionDescriptionRequest** | [**UpdateSessionDescriptionRequest**](UpdateSessionDescriptionRequest.md) | |
|
|
|
|
### Return type
|
|
|
|
Void (empty response body)
|
|
|
|
### Authorization
|
|
|
|
No authorization required
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: application/json
|
|
- **Accept**: Not defined
|
|
|
|
[[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)
|
|
|