Giter Site home page Giter Site logo

americanairlines / aa-mock-engine Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 66.0 15.46 MB

A simple backend to help you get up and running with mock data for flight data, travel info, and reservations to help you get hacking on the next big thing for American Airlines

License: MIT License

JavaScript 100.00%
express mongodb nodejs swagger

aa-mock-engine's People

Contributors

spencerkaiser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

aa-mock-engine's Issues

Fix dependency vulnerabilities detected by NPM

Pre-requisites:

  • Yes, I looked through both open and closed issues looking for what I needed
  • No, I did not find what I was looking for

Description

There are currently 29 vulnerabilities detected by NPM in our project:

  • 19 low
  • 5 moderate
  • 4 high
  • 1 critical

run npm audit to see a breakdown of the vulnerabilities.

Timezone mismatch for origins east of UTC

There is a potential for a timezone issue when an origin east of UTC leaves early in the AM (e.g., 1am). In this scenario, the date will be converted to UTC and the date will roll back to the previous day, creating a mismatch in the Mongo query.

Add support for Cloud Foundry

Pre-requisites:

  • Yes, I looked through both open and closed issues looking for what I needed
  • No, I did not find what I was looking for

Description

The app should be deployable to CF platforms (IBM Cloud etc.). To do this, the project must include CF files like manifest.yml

Change POST requests from query to body in swagger

Pre-requisites:

  • Yes, I looked through both open and closed issues looking for what I needed
  • No, I did not find what I was looking for

Description

POST requests in swagger are currently using query and they should use body

Expected Behavior

POST requests use body

Actual Behavior

POST requests use query

Repro Steps

Look at swagger ๐Ÿ•บ ๐Ÿ’ƒ

Other Information

503 error when posting Mock data

I have mock data already so I'm not sure if I'm only able to run this once.

503 Error: Service Unavailable

<html>
  <head>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta charset="utf-8">
	<title>Application Error</title>
	<style media="screen">
	  html,body,iframe {
		margin: 0;
		padding: 0;
	  }
	  html,body {
		height: 100%;
		overflow: hidden;
	  }
	  iframe {
		width: 100%;
		height: 100%;
		border: 0;
	  }
	</style>
  </head>
  <body>
	<iframe src="//www.herokucdn.com/error-pages/application-error.html"></iframe>
  </body>
</html>

cache-control: no-cache, no-store
connection: keep-alive
content-length: 506
content-type: text/html; charset=utf-8
date: Tue, 23 Jan 2018 16:12:48 GMT
server: Cowboy

Reservations should use AAdvantage Number and not Mongo _id

Pre-requisites:

  • Yes, I looked through both open and closed issues looking for what I needed
  • No, I did not find what I was looking for

Description

Reservations are currently made with a mongo _id, but should use the users AAdvantage Number.

Expected Behavior

Reservations use mongo _id

Actual Behavior

Reservations use AAdvantage Number

Repro Steps

Look at swagger ๐Ÿ•บ ๐Ÿ’ƒ

Other Information

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.