Skip to content

Commit

Permalink
Update docs to have v2 at /tracking and /delays (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanna-zhou authored Oct 11, 2020
1 parent 427141b commit 37c8b10
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
}
}
},
"/delays": {
"/v2/delays": {
"post": {
"summary": "Return a list of bus delays for buses at a specific stop",
"description": "Takes in a list of objects with fields routeID and trip ID and returns a list of objects with fields routeID, tripID, and delay.",
Expand Down Expand Up @@ -236,7 +236,7 @@
}
}
},
"/tracking": {
"/v2/tracking": {
"post": {
"summary": "Return a list information about live bus information (to help draw buses on the map).",
"produces": [
Expand All @@ -246,18 +246,18 @@
{
"in": "body",
"name": "body",
"description": "The bus information to get the live location and other relevant vehicle data from. The request body has only one field, data, which is an array of objects with the following fields: \n* routeNumber: The number of the bus route.\n* tripID: The unique trip identifier for the specific `routeNumber`.\n Ex. {\"data\": [{\"routeNumber\": integer, \"tripID\": string}]",
"description": "The bus information to get the live location and other relevant vehicle data from. The request body has only one field, data, which is an array of objects with the following fields: \n* routeID: The number of the bus route. Note this corresponds to routeNumber from v2/route (v2/route has bad naming, so please stick with this in the meantime). \n* tripID: The unique trip identifier for the specific `routeID`.\n Ex. {\"data\": [{\"routeID\": integer, \"tripID\": string}]",
"required": true,
"schema": {
"type": "array",
"items": {
"type": "object",
"required": [
"routeNumber",
"routeID",
"tripID"
],
"properties": {
"routeNumber": {
"routeID": {
"type": "integer",
"example": 10
},
Expand Down Expand Up @@ -397,6 +397,10 @@
"type": "integer",
"example": 0
},
"lastUpdated": {
"type": "integer",
"example": 1599773185
},
"latitude": {
"type": "double",
"example": 42.459849543945
Expand All @@ -405,17 +409,17 @@
"type": "double",
"example": -76.55484845435
},
"routeNumber": {
"routeID": {
"type": "integer",
"example": 77
},
"speed": {
"type": "double",
"example": 0.0
"example": 9.834879875183105
},
"timestamp": {
"vehicleID": {
"type": "integer",
"example": 1586033827
"example": 0
},
"tripID": {
"type": "string",
Expand Down

0 comments on commit 37c8b10

Please sign in to comment.