axioms of Lagrangian mechanics

imagine you’d want to formulate mechanics based on an extremal principle. what would you need to require such that all three Newton-axioms are fulfilled?