Skip to content

Commit f38505f

Browse files
authored
Revert "Add notification endpoints" (#281)
This reverts commit 62871de.
1 parent 2fdf980 commit f38505f

7 files changed

Lines changed: 1 addition & 205 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@
8383
"webpack-dev-server": "^3.1.14",
8484
"webpack-node-externals": "^1.7.2"
8585
}
86-
}
86+
}

src/API.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ class API extends ApplicationAPI {
1919
Routers.AllStopsRouter,
2020
Routers.ApplePlacesRouter,
2121
Routers.AppleSearchRouter,
22-
Routers.DelayNotification,
2322
Routers.DelayRouter,
2423
Routers.DelaysRouter,
25-
Routers.DepartNotification,
2624
Routers.HelloWorldRouter,
2725
Routers.MultiRouteRouter,
2826
Routers.PlacesAutocompleteRouter,

src/routers/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ import AlertsRouter from './v1/AlertsRouter';
22
import AllStopsRouter from './v1/AllStopsRouter';
33
import ApplePlacesRouter from './v1/ApplePlacesRouter';
44
import AppleSearchRouter from './v1/AppleSearchRouter';
5-
import DelayNotification from './v2/DelayNotification';
65
import DelayRouter from './v1/DelayRouter';
76
import DelaysRouter from './v2/DelaysRouter';
8-
import DepartNotification from './v2/DepartNotification';
97
import DocsRouter from './DocsRouter';
108
import HelloWorldRouter from './v1/HelloWorldRouter';
119
import MultiRouteRouter from './v1/MultiRouteRouter';
@@ -22,10 +20,8 @@ export default {
2220
AllStopsRouter,
2321
ApplePlacesRouter,
2422
AppleSearchRouter,
25-
DelayNotification,
2623
DelayRouter,
2724
DelaysRouter,
28-
DepartNotification,
2925
DocsRouter,
3026
HelloWorldRouter,
3127
MultiRouteRouter,

src/routers/v2/DelayNotification.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/routers/v2/DepartNotification.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/swagger.json

Lines changed: 0 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -74,104 +74,6 @@
7474
}
7575
}
7676
},
77-
"/v2/delayNotification": {
78-
"post": {
79-
"summary": "Subscribe user's device to receive notifications about bus delays",
80-
"consumes": [
81-
"application/json"
82-
],
83-
"produces": [
84-
"application/json"
85-
],
86-
"parameters": [
87-
{
88-
"in": "body",
89-
"name": "body",
90-
"description": "deviceToken: APNSDeviceToken of the device we send notifications to.\nstopID: The stop you want to get the delay for.\ntripID: The tripID for the route.\nuid: The user identifier.",
91-
"required": true,
92-
"schema": {
93-
"type": "object",
94-
"required": [
95-
"deviceToken",
96-
"stopID",
97-
"tripID",
98-
"uid"
99-
],
100-
"properties": {
101-
"deviceToken": {
102-
"type": "string"
103-
},
104-
"stopID": {
105-
"type": "string"
106-
},
107-
"tripID": {
108-
"type": "string"
109-
},
110-
"uid": {
111-
"type": "string"
112-
}
113-
}
114-
}
115-
}
116-
],
117-
"responses": {
118-
"200": {
119-
"description": "{success: true}"
120-
}
121-
}
122-
}
123-
},
124-
"/v2/departNotification": {
125-
"post": {
126-
"summary": "Subscribe user's device to receive notifications before departure time",
127-
"consumes": [
128-
"application/json"
129-
],
130-
"produces": [
131-
"application/json"
132-
],
133-
"parameters": [
134-
{
135-
"in": "body",
136-
"name": "body",
137-
"description": "deviceToken: APNSDeviceToken of the device we send notifications to.\nminutesBefore: The number of minutes before departure when the user wants to be notified.\nstopID: The stop you want to get the delay for.\ntripID: The tripID for the route.\nuid: The user identifier.",
138-
"required": true,
139-
"schema": {
140-
"type": "object",
141-
"required": [
142-
"deviceToken",
143-
"minutesBefore",
144-
"stopID",
145-
"tripID",
146-
"uid"
147-
],
148-
"properties": {
149-
"deviceToken": {
150-
"type": "string"
151-
},
152-
"minutesBefore": {
153-
"type": "string"
154-
},
155-
"stopID": {
156-
"type": "string"
157-
},
158-
"tripID": {
159-
"type": "string"
160-
},
161-
"uid": {
162-
"type": "string"
163-
}
164-
}
165-
}
166-
}
167-
],
168-
"responses": {
169-
"200": {
170-
"description": "{success: true}"
171-
}
172-
}
173-
}
174-
},
17577
"/route": {
17678
"get": {
17779
"summary": "Return a list of the best available routes based on the passed-in query parameters",

src/utils/NotificationUtils.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)