Heat the olive oil in a non-stick pan and fry the gnocchi until golden brown. Season with salt and pepper and place in a greased, flat baking dish. Spread the tomato slices or the halved cherry tomatoes on top
Cut or dice the mozzarella and place between the tomatoes, season with salt and pepper and sprinkle with the parmesan.
Briefly bake in the oven (250 ° C - possibly with grill function) until the cheese has melted. Place the ham slices on top and briefly put them in the oven again until the ham is slightly crispy.
Cut the basil (with scissors) and sprinkle over the finished gnocchi and enjoy.