Skip to content

Commit

Permalink
Move port to 8081
Browse files Browse the repository at this point in the history
  • Loading branch information
oscargarcia-tines committed Sep 2, 2017
1 parent 927757f commit b3a6dfc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ RUN npm install
# Bundle app source
COPY . .

EXPOSE 8080
EXPOSE 8081
CMD [ "npm", "start" ]
42 changes: 21 additions & 21 deletions dist/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"description": "API to return basic static for IMSA and WEC",
"termsOfService": "http://swagger.io/terms/"
},
"host": "echo-api.endpoints.round-folio-164619.cloud.goog",
"basePath": "/",
"schemes": [
"http"
Expand Down Expand Up @@ -47,24 +48,21 @@
"in": "path",
"description": "Name of the series",
"required": true,
"type": "string",
"example" : "IMSA"
"type": "string"
},
{
"name": "year",
"in": "path",
"description": "Year of the race",
"required": true,
"type": "string",
"example" : "2017"
"type": "string"
},
{
"name": "race",
"in": "path",
"description": "Race to query",
"required": true,
"type": "string",
"example" : "SEBRING"
"type": "string"
}
],
"responses": {
Expand All @@ -78,72 +76,74 @@
"description": "Race not Found"
}
}
},
}
}
},

"definitions": {
"raceData": {
"raceList":{
"type": "array",
"items": {
"$ref": "#/definitions/raceobject"
}
},
"raceData":{
"type": "array",
"items": {
"$ref": "#/definitions/raceDataRecord"
}
},
"raceDataRecord": {
"properties": {
"class": {
"required": true,
"type" : "string",
"example" : "LMP1"
},
"manufacturer" : {
"required": true,
"type": "string",
"example": "Aston Martin"
},
"team" : {
"required": true,
"type": "string",
"example": "Manor"
},
"driver" : {
"required": true,
"type": "string",
"example": "Andre Lotterer"
},
"laps" : {
"required": true,
"type": "number",
"example": "78"
},
"min" : {
"required": true,
"type": "number",
"example": "178.44"
},
"avg" : {
"required": true,
"type": "number",
"example": "188.44"
},
"Top 20 average" : {
"required": true,
"type": "number",
"example": "183.44"
}
}
},
"raceList": {
"raceobject": {
"properties": {
"series": {
"required": true,
"type" : "string",
"example" : "IMSA"
},
"year" : {
"required": true,
"type": "string",
"example": "2017"
},
"event" : {
"required": true,
"type": "string",
"example": "SEBRING"
}
}
},
}
}
}
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var argv = require('minimist')(process.argv.slice(2));
var swagger = require("swagger-node-express");
var bodyParser = require( 'body-parser' );

var port = process.env.PORT || 8080; // set our port
var port = process.env.PORT || 8081; // set our port
var router = express.Router(); // get an instance of the express Router

// Get race data API service
Expand Down

0 comments on commit b3a6dfc

Please sign in to comment.