Automatic API generation by adopting go-restful