REST APIs for retrieving request information
- generate_request_postman_collection - Generate a Postman collection for a particular request.
- get_request_from_event_log - Get information about a particular request.
- query_event_log - Query the event log to retrieve a list of requests.
Generates a Postman collection for a particular request. Allowing it to be replayed with the same inputs that were captured by the SDK.
require 'speakeasy_client_sdk_ruby'
s = ::SpeakeasyClientSDK::SDK.new
s.config_security(
::SpeakeasyClientSDK::Shared::Security.new(
api_key: "<YOUR_API_KEY_HERE>",
)
)
req = ::SpeakeasyClientSDK::Operations::GenerateRequestPostmanCollectionRequest.new(
request_id: "<value>",
)
res = s.requests.generate_request_postman_collection(req)
if ! res.postman_collection.nil?
# handle response
end
Parameter | Type | Required | Description |
---|---|---|---|
request |
::SpeakeasyClientSDK::Operations::GenerateRequestPostmanCollectionRequest | ✔️ | The request object to use for the request. |
T.nilable(::SpeakeasyClientSDK::Operations::GenerateRequestPostmanCollectionResponse)
Get information about a particular request.
require 'speakeasy_client_sdk_ruby'
s = ::SpeakeasyClientSDK::SDK.new
s.config_security(
::SpeakeasyClientSDK::Shared::Security.new(
api_key: "<YOUR_API_KEY_HERE>",
)
)
req = ::SpeakeasyClientSDK::Operations::GetRequestFromEventLogRequest.new(
request_id: "<value>",
)
res = s.requests.get_request_from_event_log(req)
if ! res.unbounded_request.nil?
# handle response
end
Parameter | Type | Required | Description |
---|---|---|---|
request |
::SpeakeasyClientSDK::Operations::GetRequestFromEventLogRequest | ✔️ | The request object to use for the request. |
T.nilable(::SpeakeasyClientSDK::Operations::GetRequestFromEventLogResponse)
Supports retrieving a list of request captured by the SDK for this workspace. Allows the filtering of requests on a number of criteria such as ApiID, VersionID, Path, Method, etc.
require 'speakeasy_client_sdk_ruby'
s = ::SpeakeasyClientSDK::SDK.new
s.config_security(
::SpeakeasyClientSDK::Shared::Security.new(
api_key: "<YOUR_API_KEY_HERE>",
)
)
req = ::SpeakeasyClientSDK::Operations::QueryEventLogRequest.new()
res = s.requests.query_event_log(req)
if ! res.bounded_requests.nil?
# handle response
end
Parameter | Type | Required | Description |
---|---|---|---|
request |
::SpeakeasyClientSDK::Operations::QueryEventLogRequest | ✔️ | The request object to use for the request. |
T.nilable(::SpeakeasyClientSDK::Operations::QueryEventLogResponse)