class
AzuCLI::Generate::ActionEndpoint
- AzuCLI::Generate::ActionEndpoint
- Teeplate::FileTree
- Reference
- Object
Overview
Single action endpoint generator for Teeplate
Defined in:
azu_cli/generators/action.crConstructors
Instance Method Summary
-
#____collect_files(____files)
:nodoc:
- #__ecr0(____io)
- #__ecr10(____io)
- #__ecr12(____io)
- #__ecr14(____io)
- #__ecr2(____io)
- #__ecr4(____io)
- #__ecr6(____io)
- #__ecr8(____io)
- #action : String
- #action=(action : String)
-
#action_path : String
Get path for this action
-
#endpoint_struct_name : String
Convert name to endpoint struct name for this action
- #endpoint_type : String
- #endpoint_type=(endpoint_type : String)
- #fields : Hash(String, String)
- #fields=(fields : Hash(String, String))
-
#full_path : String
Get full path for action
-
#http_verb_action : String
Get HTTP verb for this action as a variable
- #module_name : String
- #module_name=(module_name : String)
- #name : String
- #name=(name : String)
- #name_action : String
-
#request_params : String
Generate request parameters for service call
-
#request_type : String
Get the request/response types based on endpoint type
- #resource_plural : String
- #resource_plural=(resource_plural : String)
- #resource_singular : String
- #resource_singular=(resource_singular : String)
- #response_type : String
- #scaffold : Bool
- #scaffold=(scaffold : Bool)
- #snake_case_name : String
- #snake_case_name=(snake_case_name : String)
Constructor Detail
def self.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)
#