class

AzuCLI::Generate::ActionEndpoint

Inherits Teeplate::FileTree < Reference < Object

Single action endpoint generator for Teeplate

Constructors

new(name : String, action : String, endpoint_type : String, snake_case_name : String, module_name : String = "App", fields : Hash(String, String) = {} of String => String, scaffold : Bool = false)
Source

Instance methods

____collect_files(____files)

:nodoc:

Source
__ecr0(____io)
Source
__ecr10(____io)
Source
__ecr12(____io)
Source
__ecr14(____io)
Source
__ecr2(____io)
Source
__ecr4(____io)
Source
__ecr6(____io)
Source
__ecr8(____io)
Source
action
Source
action=(action : String)
Source
action_path

Get path for this action

Source
endpoint_struct_name

Convert name to endpoint struct name for this action

Source
endpoint_type
Source
endpoint_type=(endpoint_type : String)
Source
fields
Source
fields=(fields : Hash(String, String))
Source
full_path

Get full path for action

Source
http_verb_action

Get HTTP verb for this action as a variable

Source
module_name
Source
module_name=(module_name : String)
Source
name
Source
name=(name : String)
Source
name_action
Source
request_params

Generate request parameters for service call

Source
request_type

Get the request/response types based on endpoint type

Source
resource_plural
Source
resource_plural=(resource_plural : String)
Source
resource_singular
Source
resource_singular=(resource_singular : String)
Source
response_type
Source
scaffold
Source
scaffold=(scaffold : Bool)
Source
snake_case_name
Source
snake_case_name=(snake_case_name : String)
Source