authelia/cmd/authelia-scripts
Amir Zarrinkafsh 3487fd392e
[FEATURE] Add API docs and swagger-ui (#1544)
* [FEATURE] Add API docs and swagger-ui

This change will serve out swagger-ui at the `/api/` root path.

* Update descriptions and summaries in API spec

* Utilise frontend assets from unit testing for Docker build steps

* Fix tag for /api/user/* endpoints

* Fix response schema for /api/user/info/2fa_method

* Template and inject the session name during runtime into swagger-ui

This change also factorises and renames index.go into template.go, this can now be generically utilised to template any file.

* Fix integration tests

* Add U2F endpoints

* Change swagger directory to api

This change is to more closely conform to the golang-standards project layout.

* Add authentication for u2f endpoints

* Modify u2f endpoint descriptions

* Rename and fix u2f 2fa sign endpoints

* Fix request body for /api/secondfactor/u2f/sign endpoint

Co-authored-by: James Elliott <james-d-elliott@users.noreply.github.com>
2021-01-03 15:28:46 +11:00
..
authelia-scripts do not hardcode /bin/bash (#1122) 2020-06-18 09:49:13 +02:00
cmd_bootstrap.go [MISC] Consistently utilise correct logging interface (#1487) 2020-11-25 09:54:36 +11:00
cmd_build.go [FEATURE] Add API docs and swagger-ui (#1544) 2021-01-03 15:28:46 +11:00
cmd_ci.go [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
cmd_clean.go [CI] Add godot linter (#958) 2020-05-02 15:06:39 +10:00
cmd_docker.go [CI] Update QEMU to v5.2.0-1 (#1567) 2020-12-30 07:23:24 +11:00
cmd_serve.go [CI] Add godot linter (#958) 2020-05-02 15:06:39 +10:00
cmd_suites.go [MISC] Refactor and address most errcheck linter ignores (#1511) 2020-12-16 12:47:31 +11:00
cmd_unittest.go [CI] Add Codecov support (#1065) 2020-06-05 10:43:19 +10:00
const.go [FEATURE] Add API docs and swagger-ui (#1544) 2021-01-03 15:28:46 +11:00
docker.go [CI] Add godot linter (#958) 2020-05-02 15:06:39 +10:00
main.go [CI] Update QEMU to v5.2.0-1 (#1567) 2020-12-30 07:23:24 +11:00