write an API description for go-swagger and then replace the `sw` shell script with a go client that covers the whole API