You might find this article interesting as it covers the development and use of guns used for both offence and defence by RAF aircraft leading up to and during WWII, also for the various bombs and air to ground rockets used and the type of aircraft that used them.
https://www.rafmuseum.org.uk/documen...al_weapons.pdf
Les