code: func NewTodoListAPI(spec *loads.Document) *TodoListAPI {
  	return &TodoListAPI{
  		handlers:            make(map[string]map[string]http.Handler),
  		formats:             strfmt.Default,
  		defaultConsumes:     "application/json",
  		defaultProduces:     "application/json",
  		customConsumers:     make(map[string]runtime.Consumer),
  		customProducers:     make(map[string]runtime.Producer),
  		ServerShutdown:      func() {},
  		spec:                spec,
  		ServeError:          errors.ServeError,
  		BasicAuthenticator:  security.BasicAuth,
  		APIKeyAuthenticator: security.APIKeyAuth,
  		BearerAuthenticator: security.BearerAuth,
  		JSONConsumer:        runtime.JSONConsumer(),
  		JSONProducer:        runtime.JSONProducer(),
  		TodosAddOneHandler: todos.AddOneHandlerFunc(func(params todos.AddOneParams, principal interface{}) middleware.Responder {
  			return middleware.NotImplemented("operation TodosAddOne has not yet been implemented")
  		}),
  		TodosDestroyOneHandler: todos.DestroyOneHandlerFunc(func(params todos.DestroyOneParams, principal interface{}) middleware.Responder {
  			return middleware.NotImplemented("operation TodosDestroyOne has not yet been implemented")
  		}),
  		TodosFindHandler: todos.FindHandlerFunc(func(params todos.FindParams, principal interface{}) middleware.Responder {
  			return middleware.NotImplemented("operation TodosFind has not yet been implemented")
  		}),
  		TodosUpdateOneHandler: todos.UpdateOneHandlerFunc(func(params todos.UpdateOneParams, principal interface{}) middleware.Responder {
  			return middleware.NotImplemented("operation TodosUpdateOne has not yet been implemented")
  		}),
  
  		// Applies when the "x-todolist-token" header is set
  		KeyAuth: func(token string) (interface{}, error) {
  			return nil, errors.NotImplemented("api key auth (key) x-todolist-token from header param [x-todolist-token] has not yet been implemented")
  		},
  
  		// default authorizer is authorized meaning no requests are blocked
  		APIAuthorizer: security.Authorized(),
  	}
  }
docs: // NewTodoListAPI creates a new TodoList instance