Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
my-smarthome-backend
main
Api
ApplicationController
Concerns
Authentication
Response
DevicesController
HomeController
KeysController
SessionsController
SwitchesController
UsersController
ApiKey
ApplicationController
ApplicationMailer
Connection
Publisher
Subscriber
Device
DevicesChannel
DevicesSocket
Helpers
Auth
DeviceAuth
Firebase
PublicKey
Token
UserAuth
Encryptor
Redis
CacheStore
Connection
PubSub
Message
Stream
WebSocket
Body
Handler
DeviceHandler
Jobs
DevicePreparation
PerformProxy
Publisher
Device
Switch
Serializers
ApplicationSerializer
Switch
Subscriber
Device
Switch
Switch
User
Generated using Crystal 1.14.0
2024-11-26 09:31:57 UTC
class
Api::
SwitchesController
Api::SwitchesController
Api::ApplicationController
Amber::Controller::Base
Reference
Object
Included Modules
Helpers::WebSocket::Handler
Defined in:
controllers/api/switches_controller.cr
Instance Method Summary
#create
#destroy
#index
#show
#update
Instance methods inherited from class
Api::ApplicationController
before_filters : Nil
before_filters
Instance methods inherited from module
Api::Concerns::Response
response(status : Int32, data)
response
,
response_error(status : Int32, message)
response_error
,
response_payload(status : Int32, data)
response_payload
Instance methods inherited from module
Api::Concerns::Authentication
bearer_token
bearer_token
,
current_user
current_user
,
decoded_token
decoded_token
,
session_auth
session_auth
Instance Method Detail
def
create
#
[
View source
]
def
destroy
#
[
View source
]
def
index
#
[
View source
]
def
show
#
[
View source
]
def
update
#
[
View source
]