What is the minimum wiring for two switches?

David82:
so I could've done the same for the push button too? why do they show the inferior resistor schematic if it is possible to to it without the resistor?

The resistor inverts the signal. When you press the button the input goes HIGH.

Without the resistor the input goes LOW when you press the button, this is confusing to newbies.