Boil the potatoes, let them cool and mash them, then knead with the flour into a medium-firm dough.
Shape the dough as you like: squares, small rolls or balls.
Bring a pot of water to the boil with a little oil and salt and add the dumplings.
Cook for about 5 minutes over medium heat; they are done when they float to the surface.
In a separate pan, fry the onion in a little oil with paprika and a little flour.
When the onion is soft, toss it with the dumplings and season with salt and pepper.