class AzuCLI::Generate::ActionEndpoint

Overview

Single action endpoint generator for Teeplate

Defined in:

azu_cli/generators/action.cr

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def ____collect_files(____files) #
Description copied from class Teeplate::FileTree

:nodoc:


[View source]
def __ecr0(____io) #

[View source]
def __ecr10(____io) #

[View source]
def __ecr12(____io) #

[View source]
def __ecr14(____io) #

[View source]
def __ecr2(____io) #

[View source]
def __ecr4(____io) #

[View source]
def __ecr6(____io) #

[View source]
def __ecr8(____io) #

[View source]
def action : String #

[View source]
def action=(action : String) #

[View source]
def action_path : String #

Get path for this action


[View source]
def endpoint_struct_name : String #

Convert name to endpoint struct name for this action


[View source]
def endpoint_type : String #

[View source]
def endpoint_type=(endpoint_type : String) #

[View source]
def fields : Hash(String, String) #

[View source]
def fields=(fields : Hash(String, String)) #

[View source]
def full_path : String #

Get full path for action


[View source]
def http_verb_action : String #

Get HTTP verb for this action as a variable


[View source]
def module_name : String #

[View source]
def module_name=(module_name : String) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def name_action : String #

[View source]
def request_params : String #

Generate request parameters for service call


[View source]
def request_type : String #

Get the request/response types based on endpoint type


[View source]
def resource_plural : String #

[View source]
def resource_plural=(resource_plural : String) #

[View source]
def resource_singular : String #

[View source]
def resource_singular=(resource_singular : String) #

[View source]
def response_type : String #

[View source]
def scaffold : Bool #

[View source]
def scaffold=(scaffold : Bool) #

[View source]
def snake_case_name : String #

[View source]
def snake_case_name=(snake_case_name : String) #

[View source]