Preheat the oven to 200°C.
Peel the onion, cut into 8 wedges. You don't need to peel the garlic cloves.
Put the chicken legs with skin-side up in a roasting dish, arrange the garlic and onion around them. Sprinkle with paprika, then drizzle with the oil - rub this into the skin of the chicken. Season with salt and pepper, then roast for 30 minutes.
Pour over the tomatoes and the chickpeas. Season again with salt and pepper, then bake for another 15 minutes or until the chicken is cooked through and the skin is crispy and golden.
Serve with the parsley scattered on top.