class PlaceOS::Triggers::Api::Webhook
- PlaceOS::Triggers::Api::Webhook
- Application
- ActionController::Base
- Reference
- Object
Defined in:
controllers/webhook.crConstant Summary
-
PARSER_LIST =
["application/json"]
-
RESPONDER_LIST =
["application/json"]
Class Method Summary
-
.base_route
Helper for obtaining base route
-
.create(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)
Helper methods for performing redirect_to calls
Instance Method Summary
-
#base_route(*args, **options)
Helper for obtaining base route
-
#base_route(*args, **options, &)
Helper for obtaining base route
-
#create : String | Nil
Informs the service that a webhook has been performed Return 204 if the state isn't loaded, 202 on success
- #find_hook(id : String, secret : String)
- #trigger : Model::TriggerInstance
- #trigger? : Model::TriggerInstance | Nil
Instance methods inherited from class Application
bad_media_type(error) : ContentError
bad_media_type,
invalid_param(error) : ParameterError
invalid_param,
resource_not_found(error) : CommonError
resource_not_found,
resource_requires_authentication(error) : CommonError
resource_requires_authentication
Class Method Detail
def self.create(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)
#
Helper methods for performing redirect_to calls
Instance Method Detail
def create : String | Nil
#
Informs the service that a webhook has been performed Return 204 if the state isn't loaded, 202 on success