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

Document the REST API and improve error handling #114

Merged
merged 3 commits into from
Nov 22, 2017

Conversation

gomoripeti
Copy link
Collaborator

There are a few different changes in this PR unfortunately:

  • Split Cowboy 1.x specific code from generic REST handler
    (in preparation to support 2.x too)

  • Improve error handling of capture functions

    Handle cases when MFA is not monitored or not captured.

    As an exception in case of get_captured_data return default
    values (-1) if MFA is monitored but not captured as this is polled by
    the frontend and used as a kind of capture status. This could be
    improved in the future.

  • Document the REST API ( Document REST API #100 )

    Currently only in edoc, but in the future it could be moved to some more
    declarative format (eg OpenAPI/Swagger).

Handle cases when MFA is not monitored or not captured.

As an exception in case of `get_captured_data` return default
values (-1) if MFA is monitored but not captured as this is polled by
the frontend and used as a kind of capture status. This could be
improved in the future.
Currently only in edoc, but in the future it could be moved to some more
declarative format (eg OpenAPI/Swagger).
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 91.463% when pulling 2d68421 on gomoripeti:rest_api_docs into 3ab2c76 on Appliscale:release_2.0.

@gomoripeti gomoripeti merged commit 0575439 into Appliscale:release_2.0 Nov 22, 2017
@gomoripeti gomoripeti deleted the rest_api_docs branch November 22, 2017 15:17
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.

4 participants