Wash the pumpkin, cut in half and remove the seeds with a spoon. Rub the pumpkin halves with the oil and add the rosemary. Then salt and pepper. Place the pumpkin halves inside out on a baking sheet and bake in the hot oven for about 45 - 55 minutes.
Meanwhile, halve the tomatoes, cut the feta cheese and olives into pieces. Cut the basil into small pieces.
Take the pumpkin out of the oven, loosen the pumpkin flesh with a spoon and place in a bowl. Mix the pumpkin spaghetti with the tomatoes, feta, olives, basil, salt and pepper and pour into the two pumpkin halves.
Put again in the hot oven for approx. 10-15 minutes.