class Api::TravelsPlanService

Defined in:

services/travels_plans_service.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(repository : TravelsPlanRepository) #

[View source]

Instance Method Detail

def create_travels_plan(request_body) : TravelsPlanStruct #

[View source]
def delete_travels_plan(id : String) : Nil | Error #

[View source]
def get_all_travels_plan : Array(TravelsPlanStruct) #

[View source]
def get_travels_plan_by_id(id : String) : TravelsPlanStruct | Error #

[View source]
def repository : Api::TravelsPlanRepository #

[View source]
def update_travels_plan(id : String, request_body) : TravelsPlanStruct | Error #

[View source]