Ya finally found what I was looking for. I just need to test and verify.
taken from here
http://pokemongo.gamepress.gg/gymsso
Training at a friendly gym with x number of levels
increase in prestige and xp per level?
(should be tiered xp based on how many you beat correct?)What we should have is that every pokemon you beat you get 15-50 xp and 100-500 Prestige
Code
Relative CP Estimated Prestige Estimated XP
Much Higher 100 15
Slightly Higher 250 30
Slightly Lower 500 50
What ranges are these in actual number or %?Code
Training rewards earned for defeating each trainer
Gym Level Prestige Required Trainers xp Prestige
1 0 15,30,50 100, 250, 500
2 2000 30,60,100 200, 500, 1000
3 4000 45,90,150 300, 750, 1500
4 8000 60,120,200 400, 1000, 2000
5 12000 75,150,250 500, 1250, 2500
6 16000 90,180,300 600, 1500, 3000
7 20000 105,210,350 700, 1750, 3500
8 30000 120,240,400 800, 2000, 4000
9 40000 135,270,450 900, 2250, 4500
10 50000 150,300,500 1000, 2500, 5000
Attack a enemy gym with x number of levels
Decrease in prestige and xp per level
(should be tiered xp based on how many you beat correct?)So in similar fashion you will get 100 per trainer you beat.
Code
Bonus 50 xp and -1500 prestige beating the whole gym.
Gym Level XP Prestige
1 100 -500
2 200 -1000
3 300 -1500
4 400 -2000
5 500 -2500
6 600 -3000
7 700 -3500
8 800 -4000
9 900 -4500
10 1000 -5000
Code
Action Prestige Damage XP
Each defeated Pokémon 500 100
Defeat all Pokémon bonus 1500 50