Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add API docs and swagger-ui #1544

Merged
merged 13 commits into from
Jan 3, 2021

Conversation

nightah
Copy link
Member

@nightah nightah commented Dec 16, 2020

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

I have not documented the following endpoints:

  • /api/secondfactor/u2f/sign_request
  • /api/secondfactor/u2f/sign

@clems4ever I'm hoping that you might be able to add these two into the API spec since you understand the flow much better and can actually test inputs/outputs with a u2f key.

Some of the summaries and descriptions probably need some work, happy for a review and any recommendations.

EDIT: I've given all of the summaries and descriptions another review and made some changes.

Closes #450.

@authelia
Copy link

authelia bot commented Dec 16, 2020

Artifacts

These changes are published for testing on Buildkite and DockerHub.

Docker Container

  • docker pull authelia/authelia:feature-swagger-api-documentation

@nightah nightah force-pushed the feature-swagger-api-documentation branch 4 times, most recently from ccfc7ae to 2e3e484 Compare December 16, 2020 13:56
@codecov
Copy link

codecov bot commented Dec 16, 2020

Codecov Report

Merging #1544 (343c80e) into master (689fd7c) will increase coverage by 0.01%.
The diff coverage is 55.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1544      +/-   ##
==========================================
+ Coverage   66.07%   66.08%   +0.01%     
==========================================
  Files         144      144              
  Lines        4015     4028      +13     
  Branches      168      168              
==========================================
+ Hits         2653     2662       +9     
- Misses       1143     1148       +5     
+ Partials      219      218       -1     
Flag Coverage Δ
backend 66.69% <55.55%> (+0.01%) ⬆️
frontend 63.85% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
internal/server/template.go 42.85% <42.85%> (ø)
internal/server/server.go 84.31% <100.00%> (+0.98%) ⬆️

Copy link
Member

@james-d-elliott james-d-elliott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nightah nightah force-pushed the feature-swagger-api-documentation branch 3 times, most recently from 99a77e6 to 5825019 Compare December 17, 2020 04:12
@nightah nightah force-pushed the feature-swagger-api-documentation branch from fa28652 to bf12954 Compare January 2, 2021 05:07
Copy link
Member

@james-d-elliott james-d-elliott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nightah nightah force-pushed the feature-swagger-api-documentation branch from 7475aef to 977137f Compare January 3, 2021 01:45
This change is to more closely conform to the golang-standards project layout.
@nightah nightah force-pushed the feature-swagger-api-documentation branch from 977137f to 4aa1408 Compare January 3, 2021 02:05
api/openapi.yml Outdated Show resolved Hide resolved
@nightah nightah merged commit 3487fd3 into master Jan 3, 2021
@nightah nightah deleted the feature-swagger-api-documentation branch January 3, 2021 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a swagger description to document API
2 participants