Skip to content

Give more informative response when endpoints are not supported by Amadeus api #2

@thisfinalcode

Description

@thisfinalcode

Description

When using endpoints that amadeus does not support, the response is just "Response error"

Steps to Reproduce

  1. Go to localhost:8500/
    2 For the parameters, use:
  • Origin: SFO
  • Destination: LON
  • First Departure Date: 2019-03-23
  • Last Departure Date: 2019-03-23
  • Duration: 4
  • NonStop only: Yes

Expected Behavior:

To get a page that lists the flight price from 2019-03-23

Actual Bahavior:

Response error

Stable Behavior? [What percentage of the time does it reproduce?]

Right now it is stable, 100% reproducibility.

Versions

Python: python2.7

Pip: pip 19.0.1

Checklist

Please make sure you checked the following:

Are you running Python 2.7 or 3.6? Yes

Did you download the latest version of this package? Yes

Possible solution

  • When the endpoints are not supported by the API, show a more useful response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions