Add /api/airports with pagination to return all the airports #120

This commit is contained in:
Nabeel Shahzad
2018-01-05 10:23:26 -06:00
parent e04fa2e056
commit e931310dee
6 changed files with 52 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ class CreateAirportsTable extends Migration
Schema::create('airports', function (Blueprint $table) {
$table->string('id', 5)->primary();
$table->string('iata', 5)->nullable();
$table->string('icao', 4);
$table->string('icao', 5);
$table->string('name', 100);
$table->string('location', 100)->nullable();
$table->string('country', 64)->nullable();