hngprojects / hng_boilerplate_golang_web

Apache License 2.0
77 stars 49 forks source link

[FIX]: Update 2FA Documentation in `swagger.yaml` #325

Closed urizennnn closed 1 month ago

urizennnn commented 1 month ago

Description

This PR updates the documentation for the Two-Factor Authentication (2FA) endpoints in the swagger.yaml file. The updates include detailed descriptions of the /auth/2fa/enable and /auth/2fa/verify endpoints, including request bodies, success responses, and error responses. The changes are aimed at providing better guidance for frontend and backend developers who will implement or integrate these endpoints.

Related Issue

How Has This Been Tested?

The changes have been manually verified by reviewing the rendered Swagger documentation. The endpoints and their corresponding request/response formats have been checked against the updated swagger.yaml file to ensure accuracy and completeness.

Screenshots

If applicable, include screenshots showing the updated Swagger UI with the 2FA documentation. (For example, screenshots from Postman or Swagger UI showing the request and response examples.)

Types of changes

Checklist