Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/etiennemarais/go-openapi-swag-demo

A typical micro service that serves a JSON api to a set of clients somewhere. It uses Swag to generate the swagger/openapi compliant specs and then on main push will ship the generated file to the UI repo to get auto published for your team to have living documentation
https://github.com/etiennemarais/go-openapi-swag-demo

api-docs-generator api-documentation go golang living-documentation micro-service swagger

Last synced: about 5 hours ago
JSON representation

A typical micro service that serves a JSON api to a set of clients somewhere. It uses Swag to generate the swagger/openapi compliant specs and then on main push will ship the generated file to the UI repo to get auto published for your team to have living documentation

Awesome Lists containing this project

README

        

# go-openapi-swag-demo

![Api Docs](https://github.com/overhq/etiennemarais/go-openapi-swag-demo/Swagger/badge.svg)

## Summary

Trying to write documentation by hand is a tedious ask. This optimizes writing documentation for the writer as close to the code as possible by using annotations
to auto generate api docs.

Ths issue with most outputs are that it would just live in a file somewhere and that sucks. By leveraging github actions and a little magic, we can send the generated file to a [repo that auto builds and deploys](https://github.com/etiennemarais/go-openapi-swag-ui-demo) the documentation making it more up to date.