If you want to use a battery, you need to have a way to disconnect the battery when the pedal is not in use so it doesn't go flat: This is usually done as shown in the diagram. A stereo (tip-ring-sleeve or TRS) jack is used for the input, with the tip (guitar signal) going to the footswitch - The ring lug of the input jack is connected to the battery negative, and the sleeve to the circuit ground. When a (mono) instrument cable is plugged into the input, the ring+sleeve lugs are bridged, thus connecting the battery ground to the circuit ground and powering up the pedal. When unplugged, the battery is isolated from the circuit. Additionally, the battery positive is connected to the middle connector of the DC jack: The outer connector is connected to the circuit +9v. Most standard, centre-negative (BOSS-style) DC jacks with three connectors are "switching", i.e. the middle and outer positive connectors are only in contact when a DC jack is NOT connected, taking the battery's power to the circuit: When a DC jack is inserted, they disconnect, isolating the battery from the circuit and connecting the DC jack voltage to the pedal +9v.
Have a look at this -
http://beavisaudio.com/techpages/StompboxWiring/
It shows the same standard connections in a slightly clearer way: Please note that the 3PDT footswitch is wired differently in the Beavis diagram, but it's essentially doing the same thing (i.e. true bypass with an LED), just without grounding the circuit input in bypass mode. There are plenty of different ways to wire a 3PDT stompswitch, but the battery/DC jack/stereo input jack wiring is pretty much standard, and I haven't seen many other ways of doing this. If you don't intend to use a battery, you can just use mono input+output jacks and just wire the outer DC jack connector to the circuit +9v.