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(),
  		TodosFindTodosHandler: todos.FindTodosHandlerFunc(func(params todos.FindTodosParams) middleware.Responder {
  			return middleware.NotImplemented("operation TodosFindTodos has not yet been implemented")
  		}),
  	}
  }
docs: // NewTodoListAPI creates a new TodoList instance