示例#1
0
func (o *FastpassAPI) initHandlerCache() {
	if o.context == nil {
		o.context = middleware.NewRoutableContext(o.spec, o, nil)
	}

	if o.handlers == nil {
		o.handlers = make(map[string]map[string]http.Handler)
	}

	if o.handlers["PUT"] == nil {
		o.handlers[strings.ToUpper("PUT")] = make(map[string]http.Handler)
	}
	o.handlers["PUT"]["/events/{id}"] = NewAddEvent(o.context, o.AddEventHandler)

	if o.handlers["DELETE"] == nil {
		o.handlers[strings.ToUpper("DELETE")] = make(map[string]http.Handler)
	}
	o.handlers["DELETE"]["/events/{id}"] = NewDeleteEvent(o.context, o.DeleteEventHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/events/{id}/tickets/{uid}"] = NewGetTicket(o.context, o.GetTicketHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/events"] = NewListEvents(o.context, o.ListEventsHandler)

	if o.handlers["PUT"] == nil {
		o.handlers[strings.ToUpper("PUT")] = make(map[string]http.Handler)
	}
	o.handlers["PUT"]["/events/{id}/tickets/{uid}"] = NewTicketing(o.context, o.TicketingHandler)

}
示例#2
0
func (o *TodoListAPI) initHandlerCache() {
	if o.context == nil {
		o.context = middleware.NewRoutableContext(o.spec, o, nil)
	}

	if o.handlers == nil {
		o.handlers = make(map[string]map[string]http.Handler)
	}

	if o.handlers["POST"] == nil {
		o.handlers[strings.ToUpper("POST")] = make(map[string]http.Handler)
	}
	o.handlers["POST"]["/"] = todos.NewAddOne(o.context, o.TodosAddOneHandler)

	if o.handlers["DELETE"] == nil {
		o.handlers[strings.ToUpper("DELETE")] = make(map[string]http.Handler)
	}
	o.handlers["DELETE"]["/{id}"] = todos.NewDestroyOne(o.context, o.TodosDestroyOneHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/"] = todos.NewFindTodos(o.context, o.TodosFindTodosHandler)

	if o.handlers["PUT"] == nil {
		o.handlers[strings.ToUpper("PUT")] = make(map[string]http.Handler)
	}
	o.handlers["PUT"]["/{id}"] = todos.NewUpdateOne(o.context, o.TodosUpdateOneHandler)

}
示例#3
0
func (o *EventListAPI) initHandlerCache() {
	if o.context == nil {
		o.context = middleware.NewRoutableContext(o.spec, o, nil)
	}

	if o.handlers == nil {
		o.handlers = make(map[string]map[string]http.Handler)
	}

	if o.handlers["DELETE"] == nil {
		o.handlers[strings.ToUpper("DELETE")] = make(map[string]http.Handler)
	}
	o.handlers["DELETE"]["/events/{id}"] = events.NewDeleteEventByID(o.context, o.EventsDeleteEventByIDHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/events/{id}"] = events.NewGetEventByID(o.context, o.EventsGetEventByIDHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/events"] = events.NewGetEvents(o.context, o.EventsGetEventsHandler)

	if o.handlers["POST"] == nil {
		o.handlers[strings.ToUpper("POST")] = make(map[string]http.Handler)
	}
	o.handlers["POST"]["/events"] = events.NewPostEvent(o.context, o.EventsPostEventHandler)

	if o.handlers["PUT"] == nil {
		o.handlers[strings.ToUpper("PUT")] = make(map[string]http.Handler)
	}
	o.handlers["PUT"]["/events/{id}"] = events.NewPutEventByID(o.context, o.EventsPutEventByIDHandler)

}
func (o *GophergalaLearningResourcesAPI) initHandlerCache() {
	if o.context == nil {
		o.context = middleware.NewRoutableContext(o.spec, o, nil)
	}

	if o.handlers == nil {
		o.handlers = make(map[string]map[string]http.Handler)
	}

	if o.handlers["POST"] == nil {
		o.handlers[strings.ToUpper("POST")] = make(map[string]http.Handler)
	}
	o.handlers["POST"]["/learning-resources"] = NewAddLearningResource(o.context, o.AddLearningResourceHandler)

	if o.handlers["DELETE"] == nil {
		o.handlers[strings.ToUpper("DELETE")] = make(map[string]http.Handler)
	}
	o.handlers["DELETE"]["/learning-resources/{id}"] = NewDeleteLearningResource(o.context, o.DeleteLearningResourceHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/learning-resources/{id}"] = NewFindLearningResourceByID(o.context, o.FindLearningResourceByIDHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/learning-resources"] = NewFindLearningResources(o.context, o.FindLearningResourcesHandler)

}
示例#5
0
func (s *SwaggerAPI) initHandlerCache() {
	if s.context == nil {
		s.context = middleware.NewRoutableContext(s.spec, s, nil)
	}

	s.handlers = make(map[string]http.Handler)

	s.handlers[""] = New(s.context, s.Handler)

}
func (t *TestSpecAPI) initHandlerCache() {
	if t.context == nil {
		t.context = middleware.NewRoutableContext(t.spec, t, nil)
	}

	t.handlers = make(map[string]http.Handler)

	t.handlers[""] = New(t.context, t.Handler)

}
示例#7
0
func (o *TaskTrackerAPI) initHandlerCache() {
	if o.context == nil {
		o.context = middleware.NewRoutableContext(o.spec, o, nil)
	}

	if o.handlers == nil {
		o.handlers = make(map[string]map[string]http.Handler)
	}

	if o.handlers["POST"] == nil {
		o.handlers[strings.ToUpper("POST")] = make(map[string]http.Handler)
	}
	o.handlers["POST"]["/tasks/{id}/comments"] = tasks.NewAddCommentToTask(o.context, o.TasksAddCommentToTaskHandler)

	if o.handlers["POST"] == nil {
		o.handlers[strings.ToUpper("POST")] = make(map[string]http.Handler)
	}
	o.handlers["POST"]["/tasks"] = tasks.NewCreateTask(o.context, o.TasksCreateTaskHandler)

	if o.handlers["DELETE"] == nil {
		o.handlers[strings.ToUpper("DELETE")] = make(map[string]http.Handler)
	}
	o.handlers["DELETE"]["/tasks/{id}"] = tasks.NewDeleteTask(o.context, o.TasksDeleteTaskHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/tasks/{id}/comments"] = tasks.NewGetTaskComments(o.context, o.TasksGetTaskCommentsHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/tasks/{id}"] = tasks.NewGetTaskDetails(o.context, o.TasksGetTaskDetailsHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/tasks"] = tasks.NewListTasks(o.context, o.TasksListTasksHandler)

	if o.handlers["PUT"] == nil {
		o.handlers[strings.ToUpper("PUT")] = make(map[string]http.Handler)
	}
	o.handlers["PUT"]["/tasks/{id}"] = tasks.NewUpdateTask(o.context, o.TasksUpdateTaskHandler)

	if o.handlers["POST"] == nil {
		o.handlers[strings.ToUpper("POST")] = make(map[string]http.Handler)
	}
	o.handlers["POST"]["/tasks/{id}/files"] = tasks.NewUploadTaskFile(o.context, o.TasksUploadTaskFileHandler)

}
示例#8
0
func (o *TodoListAPI) initHandlerCache() {
	if o.context == nil {
		o.context = middleware.NewRoutableContext(o.spec, o, nil)
	}

	if o.handlers == nil {
		o.handlers = make(map[string]map[string]http.Handler)
	}

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/"] = todos.NewFindTodos(o.context, o.TodosFindTodosHandler)

}
示例#9
0
func (o *ToDoListAPI) initHandlerCache() {
	if o.context == nil {
		o.context = middleware.NewRoutableContext(o.spec, o, nil)
	}

	o.handlers = make(map[string]http.Handler)

	o.handlers["addOne"] = todos.NewAddOne(o.context, o.AddOneHandler)

	o.handlers["destroyOne"] = todos.NewDestroyOne(o.context, o.DestroyOneHandler)

	o.handlers["find"] = todos.NewFind(o.context, o.FindHandler)

	o.handlers["updateOne"] = todos.NewUpdateOne(o.context, o.UpdateOneHandler)

}
示例#10
0
func (o *EventListAPI) initHandlerCache() {
	if o.context == nil {
		o.context = middleware.NewRoutableContext(o.spec, o, nil)
	}

	o.handlers = make(map[string]http.Handler)

	o.handlers["deleteEventById"] = events.NewDeleteEventByID(o.context, o.DeleteEventByIDHandler)

	o.handlers["getEventById"] = events.NewGetEventByID(o.context, o.GetEventByIDHandler)

	o.handlers["getEvents"] = events.NewGetEvents(o.context, o.GetEventsHandler)

	o.handlers["postEvent"] = events.NewPostEvent(o.context, o.PostEventHandler)

	o.handlers["putEventById"] = events.NewPutEventByID(o.context, o.PutEventByIDHandler)

}
示例#11
0
func (o *PetStoreAPI) initHandlerCache() {
	if o.context == nil {
		o.context = middleware.NewRoutableContext(o.spec, o, nil)
	}

	o.handlers = make(map[string]http.Handler)

	o.handlers["getPetById"] = pet.NewGetPetByID(o.context, o.GetPetByIDHandler)

	o.handlers["logoutUser"] = user.NewLogoutUser(o.context, o.LogoutUserHandler)

	o.handlers["deleteUser"] = user.NewDeleteUser(o.context, o.DeleteUserHandler)

	o.handlers["deleteOrder"] = store.NewDeleteOrder(o.context, o.DeleteOrderHandler)

	o.handlers["updateUser"] = user.NewUpdateUser(o.context, o.UpdateUserHandler)

	o.handlers["loginUser"] = user.NewLoginUser(o.context, o.LoginUserHandler)

	o.handlers["deletePet"] = pet.NewDeletePet(o.context, o.DeletePetHandler)

	o.handlers["updatePet"] = pet.NewUpdatePet(o.context, o.UpdatePetHandler)

	o.handlers["createUsersWithListInput"] = user.NewCreateUsersWithListInput(o.context, o.CreateUsersWithListInputHandler)

	o.handlers["addPet"] = pet.NewAddPet(o.context, o.AddPetHandler)

	o.handlers["createUser"] = user.NewCreateUser(o.context, o.CreateUserHandler)

	o.handlers["findPetsByStatus"] = pet.NewFindPetsByStatus(o.context, o.FindPetsByStatusHandler)

	o.handlers["getUserByName"] = user.NewGetUserByName(o.context, o.GetUserByNameHandler)

	o.handlers["placeOrder"] = store.NewPlaceOrder(o.context, o.PlaceOrderHandler)

	o.handlers["updatePetWithForm"] = pet.NewUpdatePetWithForm(o.context, o.UpdatePetWithFormHandler)

	o.handlers["getOrderById"] = store.NewGetOrderByID(o.context, o.GetOrderByIDHandler)

	o.handlers["findPetsByTags"] = pet.NewFindPetsByTags(o.context, o.FindPetsByTagsHandler)

	o.handlers["createUsersWithArrayInput"] = user.NewCreateUsersWithArrayInput(o.context, o.CreateUsersWithArrayInputHandler)

}
示例#12
0
func (s *SwaggerPetstoreAPI) initHandlerCache() {
	if s.context == nil {
		s.context = middleware.NewRoutableContext(s.spec, s, nil)
	}

	s.handlers = make(map[string]http.Handler)

	s.handlers["addPet"] = pet.NewAddPet(s.context, s.AddPetHandler)

	s.handlers["createUser"] = user.NewCreateUser(s.context, s.CreateUserHandler)

	s.handlers["createUsersWithArrayInput"] = user.NewCreateUsersWithArrayInput(s.context, s.CreateUsersWithArrayInputHandler)

	s.handlers["logoutUser"] = user.NewLogoutUser(s.context, s.LogoutUserHandler)

	s.handlers["updateUser"] = user.NewUpdateUser(s.context, s.UpdateUserHandler)

	s.handlers["findPetsByStatus"] = pet.NewFindPetsByStatus(s.context, s.FindPetsByStatusHandler)

	s.handlers["loginUser"] = user.NewLoginUser(s.context, s.LoginUserHandler)

	s.handlers["getPetById"] = pet.NewGetPetByID(s.context, s.GetPetByIDHandler)

	s.handlers["getOrderById"] = store.NewGetOrderByID(s.context, s.GetOrderByIDHandler)

	s.handlers["getUserByName"] = user.NewGetUserByName(s.context, s.GetUserByNameHandler)

	s.handlers["deletePet"] = pet.NewDeletePet(s.context, s.DeletePetHandler)

	s.handlers["deleteUser"] = user.NewDeleteUser(s.context, s.DeleteUserHandler)

	s.handlers["updatePet"] = pet.NewUpdatePet(s.context, s.UpdatePetHandler)

	s.handlers["createUsersWithListInput"] = user.NewCreateUsersWithListInput(s.context, s.CreateUsersWithListInputHandler)

	s.handlers["placeOrder"] = store.NewPlaceOrder(s.context, s.PlaceOrderHandler)

	s.handlers["updatePetWithForm"] = pet.NewUpdatePetWithForm(s.context, s.UpdatePetWithFormHandler)

	s.handlers["findPetsByTags"] = pet.NewFindPetsByTags(s.context, s.FindPetsByTagsHandler)

	s.handlers["deleteOrder"] = store.NewDeleteOrder(s.context, s.DeleteOrderHandler)

}
示例#13
0
func (o *JenkinsAPI) initHandlerCache() {
	if o.context == nil {
		o.context = middleware.NewRoutableContext(o.spec, o, nil)
	}

	if o.handlers == nil {
		o.handlers = make(map[string]map[string]http.Handler)
	}

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/api/jenkins/jobs"] = job.NewGetJobList(o.context, o.JobGetJobListHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/api/jenkins/health"] = health.NewGetServiceHealth(o.context, o.HealthGetServiceHealthHandler)

}
示例#14
0
func (o *PetstoreAPI) initHandlerCache() {
	if o.context == nil {
		o.context = middleware.NewRoutableContext(o.spec, o, nil)
	}

	if o.handlers == nil {
		o.handlers = make(map[string]map[string]http.Handler)
	}

	if o.handlers["POST"] == nil {
		o.handlers[strings.ToUpper("POST")] = make(map[string]http.Handler)
	}
	o.handlers["POST"]["/pet"] = pet.NewAddPet(o.context, o.PetAddPetHandler)

	if o.handlers["POST"] == nil {
		o.handlers[strings.ToUpper("POST")] = make(map[string]http.Handler)
	}
	o.handlers["POST"]["/user"] = user.NewCreateUser(o.context, o.UserCreateUserHandler)

	if o.handlers["POST"] == nil {
		o.handlers[strings.ToUpper("POST")] = make(map[string]http.Handler)
	}
	o.handlers["POST"]["/user/createWithArray"] = user.NewCreateUsersWithArrayInput(o.context, o.UserCreateUsersWithArrayInputHandler)

	if o.handlers["POST"] == nil {
		o.handlers[strings.ToUpper("POST")] = make(map[string]http.Handler)
	}
	o.handlers["POST"]["/user/createWithList"] = user.NewCreateUsersWithListInput(o.context, o.UserCreateUsersWithListInputHandler)

	if o.handlers["DELETE"] == nil {
		o.handlers[strings.ToUpper("DELETE")] = make(map[string]http.Handler)
	}
	o.handlers["DELETE"]["/store/order/{orderId}"] = store.NewDeleteOrder(o.context, o.StoreDeleteOrderHandler)

	if o.handlers["DELETE"] == nil {
		o.handlers[strings.ToUpper("DELETE")] = make(map[string]http.Handler)
	}
	o.handlers["DELETE"]["/pet/{petId}"] = pet.NewDeletePet(o.context, o.PetDeletePetHandler)

	if o.handlers["DELETE"] == nil {
		o.handlers[strings.ToUpper("DELETE")] = make(map[string]http.Handler)
	}
	o.handlers["DELETE"]["/user/{username}"] = user.NewDeleteUser(o.context, o.UserDeleteUserHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/pet/findByStatus"] = pet.NewFindPetsByStatus(o.context, o.PetFindPetsByStatusHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/pet/findByTags"] = pet.NewFindPetsByTags(o.context, o.PetFindPetsByTagsHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/store/inventory"] = store.NewGetInventory(o.context, o.StoreGetInventoryHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/store/order/{orderId}"] = store.NewGetOrderByID(o.context, o.StoreGetOrderByIDHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/pet/{petId}"] = pet.NewGetPetByID(o.context, o.PetGetPetByIDHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/user/{username}"] = user.NewGetUserByName(o.context, o.UserGetUserByNameHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/user/login"] = user.NewLoginUser(o.context, o.UserLoginUserHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/user/logout"] = user.NewLogoutUser(o.context, o.UserLogoutUserHandler)

	if o.handlers["POST"] == nil {
		o.handlers[strings.ToUpper("POST")] = make(map[string]http.Handler)
	}
	o.handlers["POST"]["/store/order"] = store.NewPlaceOrder(o.context, o.StorePlaceOrderHandler)

	if o.handlers["PUT"] == nil {
		o.handlers[strings.ToUpper("PUT")] = make(map[string]http.Handler)
	}
	o.handlers["PUT"]["/pet"] = pet.NewUpdatePet(o.context, o.PetUpdatePetHandler)

	if o.handlers["POST"] == nil {
		o.handlers[strings.ToUpper("POST")] = make(map[string]http.Handler)
	}
	o.handlers["POST"]["/pet/{petId}"] = pet.NewUpdatePetWithForm(o.context, o.PetUpdatePetWithFormHandler)

	if o.handlers["PUT"] == nil {
		o.handlers[strings.ToUpper("PUT")] = make(map[string]http.Handler)
	}
	o.handlers["PUT"]["/user/{username}"] = user.NewUpdateUser(o.context, o.UserUpdateUserHandler)

	if o.handlers["POST"] == nil {
		o.handlers[strings.ToUpper("POST")] = make(map[string]http.Handler)
	}
	o.handlers["POST"]["/pet/{petId}/uploadImage"] = pet.NewUploadFile(o.context, o.PetUploadFileHandler)

}
func (o *GophergalaLearningResourcesAPI) initHandlerCache() {
	if o.context == nil {
		o.context = middleware.NewRoutableContext(o.spec, o, nil)
	}

	if o.handlers == nil {
		o.handlers = make(map[string]map[string]http.Handler)
	}

	if o.handlers["POST"] == nil {
		o.handlers[strings.ToUpper("POST")] = make(map[string]http.Handler)
	}
	o.handlers["POST"]["/learning-resources"] = NewAddLearningResource(o.context, o.AddLearningResourceHandler)

	if o.handlers["POST"] == nil {
		o.handlers[strings.ToUpper("POST")] = make(map[string]http.Handler)
	}
	o.handlers["POST"]["/reviews"] = NewAddReview(o.context, o.AddReviewHandler)

	if o.handlers["POST"] == nil {
		o.handlers[strings.ToUpper("POST")] = make(map[string]http.Handler)
	}
	o.handlers["POST"]["/screenshot/{id}"] = NewAddScreenshot(o.context, o.AddScreenshotHandler)

	if o.handlers["POST"] == nil {
		o.handlers[strings.ToUpper("POST")] = make(map[string]http.Handler)
	}
	o.handlers["POST"]["/users"] = NewAddUser(o.context, o.AddUserHandler)

	if o.handlers["POST"] == nil {
		o.handlers[strings.ToUpper("POST")] = make(map[string]http.Handler)
	}
	o.handlers["POST"]["/user-auth"] = NewAuthUser(o.context, o.AuthUserHandler)

	if o.handlers["DELETE"] == nil {
		o.handlers[strings.ToUpper("DELETE")] = make(map[string]http.Handler)
	}
	o.handlers["DELETE"]["/learning-resources/{id}"] = NewDeleteLearningResource(o.context, o.DeleteLearningResourceHandler)

	if o.handlers["DELETE"] == nil {
		o.handlers[strings.ToUpper("DELETE")] = make(map[string]http.Handler)
	}
	o.handlers["DELETE"]["/reviews/{id}"] = NewDeleteReview(o.context, o.DeleteReviewHandler)

	if o.handlers["DELETE"] == nil {
		o.handlers[strings.ToUpper("DELETE")] = make(map[string]http.Handler)
	}
	o.handlers["DELETE"]["/users/{id}"] = NewDeleteUser(o.context, o.DeleteUserHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/languages"] = NewFindLanguages(o.context, o.FindLanguagesHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/learning-resources/{id}"] = NewFindLearningResourceByID(o.context, o.FindLearningResourceByIDHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/learning-resources"] = NewFindLearningResources(o.context, o.FindLearningResourcesHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/learning-resources/{id}/recommendations"] = NewFindRecommendationForLearningResource(o.context, o.FindRecommendationForLearningResourceHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/reviews/{id}"] = NewFindReviewByID(o.context, o.FindReviewByIDHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/reviews"] = NewFindReviews(o.context, o.FindReviewsHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/learning-resources/{id}/reviews"] = NewFindReviewsForLearningResource(o.context, o.FindReviewsForLearningResourceHandler)

	if o.handlers["GET"] == nil {
		o.handlers[strings.ToUpper("GET")] = make(map[string]http.Handler)
	}
	o.handlers["GET"]["/users/{id}"] = NewFindUserByID(o.context, o.FindUserByIDHandler)

}