Somewhat functional now

The code still stinks, but it at least outputs something that
ostensibly could be read by swagger-ui (not that I’ve tried that yet)