Add basic swagger documentation

accessible by running with -swagger. Accessible at /swagger/index.html.
Currently doesn't have authentication setup, so no requests will work.
This commit is contained in:
Harvey Tindall
2020-09-24 17:51:13 +01:00
parent 544f5674e8
commit b6537cef65
12 changed files with 3254 additions and 144 deletions

View File

@@ -36,6 +36,9 @@ ts-debug:
-npx tsc -p ts/ --sourceMap
cp -r ts data/static/
swagger:
swag init -g main.go
version:
python3 version.py auto version.go
@@ -52,6 +55,7 @@ compress:
copy:
$(info Copying data)
cp -r data build/
cp docs/swagger.json build/data/static/
install:
cp -r build $(DESTDIR)/jfa-go